asn.c memory leak fix.

This commit is contained in:
jrblixt
2017-06-29 14:55:19 -06:00
parent 31e1d469c0
commit baf6bdd6e1

View File

@ -9449,6 +9449,7 @@ int wc_SetKeyUsage(Cert *cert, const char *value)
/* parse value, and set corresponding Key Usage value */
if ((token = XSTRTOK(str, ",", &ptr)) == NULL) {
XFREE(str, cert->heap, DYNAMIC_TYPE_TMP_BUFFER);
return KEYUSAGE_E;
}
while (token != NULL)