actually free libPath after verifying that PR_GetLibraryPath really does copy the return value.

git-svn-id: svn://10.0.0.236/trunk@54924 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
toshok%hungry.com
1999-12-01 21:16:25 +00:00
parent 644ab39a24
commit 611f0cf65e

View File

@@ -187,12 +187,7 @@ PRLibrary *NativeMethodDispatcher::loadLibrary(const char *simpleLibName)
//free(libName);
}
/* XXX The NSPR doc says it's our responsibility to free this, but in
* reality PR_GetLibraryPath() returns a pointer to the actual path.
* So until they fix this or clarify how PR_GetLibraryPath() should
* behave, this line shall remain commented out -- Sriram, 8/12/97
*/
/* if (libPath) PR_DELETE(libPath); */
if (libPath) PR_DELETE(libPath);
return lib;
}