upstream: memleak on error path; found by libfuzzer

OpenBSD-Commit-ID: 34d44cb0fb5bdb5fcbc6b02b804e71b20a7a5fc7
This commit is contained in:
djm@openbsd.org 2019-09-05 05:42:59 +00:00 committed by Damien Miller
parent bab6feb01f
commit 69159afe24

View File

@ -658,7 +658,7 @@ sshsigopt_parse(const char *opts, const char *path, u_long linenum,
fail:
if (errstrp != NULL)
*errstrp = errstr;
free(ret);
sshsigopt_free(ret);
return NULL;
}