Index: mozilla/security/nss/lib/pk11wrap/pk11load.c =================================================================== RCS file: /cvsroot/mozilla/security/nss/lib/pk11wrap/pk11load.c,v retrieving revision 1.17 diff -pU16 -r1.17 mozilla/security/nss/lib/pk11wrap/pk11load.c --- mozilla/security/nss/lib/pk11wrap/pk11load.c +++ mozilla/security/nss/lib/pk11wrap/pk11load.c @@ -259,33 +259,38 @@ SECMOD_LoadPKCS11Module(SECMODModule *mo #ifdef notdef /* look up the library name */ full_name = PR_GetLibraryName(PR_GetLibraryPath(),mod->dllName); if (full_name == NULL) { return SECFailure; } #else full_name = PORT_Strdup(mod->dllName); #endif /* load the library. If this succeeds, then we have to remember to * unload the library if anything goes wrong from here on out... */ library = PR_LoadLibrary(full_name); mod->library = (void *)library; +#ifdef notdef + PR_FreeLibraryName(full_name); +#else PORT_Free(full_name); +#endif + if (library == NULL) { return SECFailure; } /* * now we need to get the entry point to find the function pointers */ if (!mod->moduleDBOnly) { entry = (CK_C_GetFunctionList) PR_FindSymbol(library, "C_GetFunctionList"); } if (mod->isModuleDB) { mod->moduleDBFunc = (void *) PR_FindSymbol(library, "NSS_ReturnModuleSpecData"); } if (mod->moduleDBFunc == NULL) mod->isModuleDB = PR_FALSE;