diff options
author | wtc%google.com <devnull@localhost> | 2007-11-28 02:40:30 +0000 |
---|---|---|
committer | wtc%google.com <devnull@localhost> | 2007-11-28 02:40:30 +0000 |
commit | 3ea57b2f3da2ec9a1bcae9c576cd66d768800bb3 (patch) | |
tree | 2477e05f5d984440b9d20ca788c2e488d61f8f68 | |
parent | 58c99a2017ad587a15241dfa290bd39a9ece331e (diff) | |
download | nss-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.c | 5 |
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; |