From 330c733958791ee348fe1a0e0c4dcdece53c783a Mon Sep 17 00:00:00 2001 From: Zorg Date: Tue, 5 May 2015 20:25:42 -0400 Subject: [PATCH] Don't forget to free the buffer --- Sparkle/SUBinaryDeltaCreate.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Sparkle/SUBinaryDeltaCreate.m b/Sparkle/SUBinaryDeltaCreate.m index bc802bdc..da2c5888 100644 --- a/Sparkle/SUBinaryDeltaCreate.m +++ b/Sparkle/SUBinaryDeltaCreate.m @@ -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;