Don't forget to free the buffer

This commit is contained in:
Zorg committed 2015-05-05 20:25:42 -04:00
1 parent 4c782a67ed
commit 330c733958
1 file changed
+1
+1
View File
@@ -124,6 +124,7 @@ static bool codeSignatureExtendedAttributeExists(const FTSENT *ent)
if (strncmp("com.apple.cs.CodeDirectory", attribute, length) == 0 ||
strncmp("com.apple.cs.CodeRequirements", attribute, length) == 0 ||
strncmp("com.apple.cs.CodeSignature", attribute, length) == 0) {
free(buffer);
return true;
}
startCharacterIndex = characterIndex + 1;