diff options
author | Jonas Allmann <jallmann@mozilla.com> | 2017-11-16 09:25:59 +0100 |
---|---|---|
committer | Jonas Allmann <jallmann@mozilla.com> | 2017-11-16 09:25:59 +0100 |
commit | d6405af8abdac31bc81c553c13e22d2d4a2c4acc (patch) | |
tree | f4b3a127afbcc1c1b8763ee0af56b4e27a1ab01f /cmd/lib | |
parent | d2055d22f16172f329e9204b80584e9c2b87d5f3 (diff) | |
download | nss-hg-d6405af8abdac31bc81c553c13e22d2d4a2c4acc.tar.gz |
Bug 1220077, fixed leak in unused passwort prompt, r=franziskus
Reviewers: franziskus
Reviewed By: franziskus
Bug #: 1220077
Differential Revision: https://phabricator.services.mozilla.com/D233
Diffstat (limited to 'cmd/lib')
-rw-r--r-- | cmd/lib/secutil.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/lib/secutil.c b/cmd/lib/secutil.c index 665c9494c..7465db4a4 100644 --- a/cmd/lib/secutil.c +++ b/cmd/lib/secutil.c @@ -240,7 +240,8 @@ SECU_GetModulePassword(PK11SlotInfo *slot, PRBool retry, void *arg) sprintf(prompt, "Press Enter, then enter PIN for \"%s\" on external device.\n", PK11_GetTokenName(slot)); - (void)SECU_GetPasswordString(NULL, prompt); + char* pw = SECU_GetPasswordString(NULL, prompt); + PORT_Free(pw); /* Fall Through */ case PW_PLAINTEXT: return PL_strdup(pwdata->data); |