Skip to content

Commit

Permalink
Bug 1208405 - fix resource leak (CID1374112), r=ttaubert
Browse files Browse the repository at this point in the history
--HG--
extra : amend_source : 800117e1aa10fd316e721b08238742c3f62359a6
  • Loading branch information
franziskuskiefer committed Oct 24, 2016
1 parent 403b832 commit 733ddc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/lib/basicutil.c
Expand Up @@ -787,12 +787,12 @@ parseGroupList(const char *arg, SSLNamedGroup **enabledGroups,
p = strtok(NULL, ",");
}
groups = PORT_ZNewArray(SSLNamedGroup, numValues);
if (!groups) {
return SECFailure;
}
if (str) {
PORT_Free(str);
}
if (!groups) {
return SECFailure;
}

/* Get group names. */
str = PORT_Strdup(arg);
Expand Down

0 comments on commit 733ddc3

Please sign in to comment.