From cf92865f6456cf5529183daaf079ee445d102d3a Mon Sep 17 00:00:00 2001 From: "alexei.volkov.bugs%sun.com" Date: Fri, 29 Sep 2006 19:53:07 +0000 Subject: [PATCH] 321600: SECMOD_LoadPKCS11Module calls to PR_GetLibraryName must use PR_FreeLibraryName. r=wtchang. Patch provided by timeless. --- security/nss/lib/pk11wrap/pk11load.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/security/nss/lib/pk11wrap/pk11load.c b/security/nss/lib/pk11wrap/pk11load.c index d0d305eb4dd..5b664ce9cf9 100644 --- a/security/nss/lib/pk11wrap/pk11load.c +++ b/security/nss/lib/pk11wrap/pk11load.c @@ -272,7 +272,12 @@ SECMOD_LoadPKCS11Module(SECMODModule *mod) { */ 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; }