Skip to content

Commit fdbaf50

Browse files
authored
Fix memory leak in CFBundle_Executable.c (#2900)
Add call CFRelease for object returned from CFURLCreateWithFileSystemPathRelativeToBase which returns +1 retain count according to Create rule.
1 parent 105a763 commit fdbaf50

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
@@ -87,6 +87,7 @@ static CFURLRef _CFBundleCopyExecutableURLRaw(CFURLRef urlPath, CFStringRef exeN
8787
CFRelease(executableURL);
8888
executableURL = NULL;
8989
}
90+
if (sharedLibraryName) CFRelease(sharedLibraryName);
9091
}
9192
}
9293
#elif TARGET_OS_MAC

0 commit comments

Comments
 (0)