Skip to content

Commit

Permalink
try manually releasing pubkey in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kiel-apple committed Nov 5, 2024
1 parent fbbd06a commit fdbd53c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ - (nullable MTRDeviceController *)startControllerWithRootKeys:(MTRTestKeys *)roo

__auto_type * operationalPublicKey = [operationalKeys copyPublicKey];
XCTAssert(operationalPublicKey != NULL);
CFAutorelease(operationalPublicKey);

__auto_type * operational = [MTRCertificates createOperationalCertificate:rootKeys
signingCertificate:root
Expand All @@ -414,6 +413,8 @@ - (nullable MTRDeviceController *)startControllerWithRootKeys:(MTRTestKeys *)roo
nodeID:nodeID
caseAuthenticatedTags:caseAuthenticatedTags
error:error];
CFRelease(operationalPublicKey);

XCTAssertNil(*error);
XCTAssertNotNil(operational);

Expand Down

0 comments on commit fdbd53c

Please sign in to comment.