Bug 1208405 - Cleanup (CID 1374288), r=franziskus
authorMartin Thomson <martin.thomson@gmail.com>
Wed, 26 Oct 2016 11:11:10 +1100
changeset 12760 32fb22b38d4af965e397d21b764cc96945a4c078
parent 12759 edc036fdbf2d8b643e94fe6035dcebdaeb9edeee
child 12761 d1dee8e4e107a76e91b5eebc6671986833b676b1
push id1702
push usermartin.thomson@gmail.com
push dateWed, 26 Oct 2016 05:45:36 +0000
reviewersfranziskus
bugs1208405, 1374288
Bug 1208405 - Cleanup (CID 1374288), r=franziskus
cmd/lib/basicutil.c
--- a/cmd/lib/basicutil.c
+++ b/cmd/lib/basicutil.c
@@ -787,16 +787,17 @@ parseGroupList(const char *arg, SSLNamed
         return SECFailure;
     }
     p = strtok(str, ",");
     while (p) {
         ++numValues;
         p = strtok(NULL, ",");
     }
     PORT_Free(str);
+    str = NULL;
     groups = PORT_ZNewArray(SSLNamedGroup, numValues);
     if (!groups) {
         goto done;
     }
 
     /* Get group names. */
     str = PORT_Strdup(arg);
     if (!str) {