]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: memleak on error path; found by libfuzzer
authordjm@openbsd.org <djm@openbsd.org>
Thu, 5 Sep 2019 05:42:59 +0000 (05:42 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 5 Sep 2019 05:44:19 +0000 (15:44 +1000)
OpenBSD-Commit-ID: 34d44cb0fb5bdb5fcbc6b02b804e71b20a7a5fc7

sshsig.c

index bda57b30ed9104b56b3411aae93369383284b557..b993b7c1ead48c11c5c43e429c553325e71cd266 100644 (file)
--- a/sshsig.c
+++ b/sshsig.c
@@ -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;
 }