Skip to content

Commit 105a763

Browse files
authored
Fix memory leak in CFBundle_Executable.c (#2868)
1 parent 7d521e4 commit 105a763

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CoreFoundation/PlugIn.subproj/CFBundle_Executable.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ static CFURLRef _CFBundleCopyExecutableURLInDirectory2(CFBundleRef bundle, CFURL
259259
} else {
260260
exeDirURL = (CFURLRef)CFRetain(url);
261261
}
262+
if (extension) CFRelease(extension);
262263
#else
263264
exeDirURL = (CFURLRef)CFRetain(url);
264265
#endif

0 commit comments

Comments
 (0)