summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%google.com <devnull@localhost>2007-11-28 02:40:30 +0000
committerwtc%google.com <devnull@localhost>2007-11-28 02:40:30 +0000
commit3ea57b2f3da2ec9a1bcae9c576cd66d768800bb3 (patch)
tree2477e05f5d984440b9d20ca788c2e488d61f8f68
parent58c99a2017ad587a15241dfa290bd39a9ece331e (diff)
downloadnss-hg-3ea57b2f3da2ec9a1bcae9c576cd66d768800bb3.tar.gz
Bugzilla bug 404919: sftkdb_ReadSecmodDB should free the string returned
by sftk_getOldSecmodName. The patch is contributed by Boying Lu <brian.lu@sun.com>. r=wtc
-rw-r--r--security/nss/lib/softoken/sftkmod.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/security/nss/lib/softoken/sftkmod.c b/security/nss/lib/softoken/sftkmod.c
index 8f4d61908..408270bdd 100644
--- a/security/nss/lib/softoken/sftkmod.c
+++ b/security/nss/lib/softoken/sftkmod.c
@@ -431,8 +431,11 @@ done:
/* done with the old module list */
sftkdbCall_ReleaseSecmodDBData(appName, filename, olddbname,
oldModuleList, rw);
- }
bail:
+ if (olddbname) {
+ PR_smprintf_free(olddbname);
+ }
+ }
if (!moduleList[0]) {
char * newParams;