Skip to content

Commit

Permalink
Fix potential leak of resourcePathString
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-cellier-aka-nice committed Nov 18, 2016
1 parent 4788b56 commit 56ca4b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platforms/Mac OS/vm/sqMacUnixExternalPrims.c
Expand Up @@ -258,6 +258,7 @@ void *ioLoadModule(char *pluginName)
CFRelease(bundleURL);
filePath = CFURLCopyFileSystemPath (bundleURL2, kCFURLPOSIXPathStyle);
CFRelease(bundleURL2);
CFRelease(resourcePathString);

CFStringGetCString (filePath,vmDirPath,DOCUMENT_NAME_SIZE, kCFStringEncodingUTF8);
strcat(vmDirPath,"/");
Expand Down

0 comments on commit 56ca4b0

Please sign in to comment.