Skip to content

Commit 89b70c3

Browse files
committed
update makefile
1 parent c1194bc commit 89b70c3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ format-all: format format-cargo
7373

7474
.PHONY: format-clang
7575
format-clang:
76-
find . -name "*.c" -exec clang-format -i {} +
77-
76+
find . -type f \( -name "*.c" -o -name "*.h" \) -exec clang-format -i {} +
7877
.PHONY: run
7978
run: githooks
8079
swift run --package-path Boka

Networking/Sources/Networking/PKCS12.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public func parseCertificate(data: Data) throws -> (publicKey: Data, alternative
1212
var publicKeyLen = 0
1313
var altNamePointer: UnsafeMutablePointer<Int8>!
1414
var errorMessage: UnsafeMutablePointer<Int8>?
15-
15+
defer { free(altNamePointer) }
1616
let result = data.withUnsafeBytes { (bytes: UnsafeRawBufferPointer) in
1717
parse_pkcs12_certificate(
1818
bytes.baseAddress!.assumingMemoryBound(to: UInt8.self),

0 commit comments

Comments
 (0)