Bug 1245423, [Coverity 1338032] Free a char*, r=kaie
authorPaul Bignier <paul.bignier@gmail.com>
Wed, 03 Feb 2016 14:21:51 +0100
changeset 11839 f64c9a067660e8db9d6bd2aa91af013d117b4624
parent 11838 b6bcbd62e83317bea177287736669b8b1cd361b6
child 11840 589448c4c3d7e3d3e9fdc598047cc064db2aae14
push id953
push userkaie@kuix.de
push dateWed, 03 Feb 2016 13:21:59 +0000
reviewerskaie
bugs1245423, 1338032
Bug 1245423, [Coverity 1338032] Free a char*, r=kaie
cmd/certutil/certutil.c
--- a/cmd/certutil/certutil.c
+++ b/cmd/certutil/certutil.c
@@ -3479,16 +3479,19 @@ shutdown:
 	SECKEY_DestroyPublicKey(pubkey);
     }
     if (subject) {
 	CERT_DestroyName(subject);
     }
     if (name) {
 	PL_strfree(name);
     }
+    if (newName) {
+	PL_strfree(newName);
+    }
     if (inFile && inFile != PR_STDIN) {
 	PR_Close(inFile);
     }
     if (outFile && outFile != PR_STDOUT) {
 	PR_Close(outFile);
     }
     SECITEM_FreeItem(&certReqDER, PR_FALSE);
     SECITEM_FreeItem(&certDER, PR_FALSE);