]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Plug mem leak. Patch from afonot via github PR#574, ok djm@
authordtucker@openbsd.org <dtucker@openbsd.org>
Mon, 16 Jun 2025 08:53:04 +0000 (08:53 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 16 Jun 2025 09:12:31 +0000 (19:12 +1000)
OpenBSD-Commit-ID: 65619f14ef206028ce39bc31f704b832a0609688

clientloop.c

index 916fc077bdc94207ef398c0c264417d8d557ca5d..b98413342e205a9e46cf0261a9412093911d370a 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.410 2024/12/03 22:30:03 jsg Exp $ */
+/* $OpenBSD: clientloop.c,v 1.411 2025/06/16 08:53:04 dtucker Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2420,6 +2420,7 @@ client_global_hostkeys_prove_confirm(struct ssh *ssh, int type,
        /* Make the edits to known_hosts */
        update_known_hosts(ctx);
  out:
+       sshbuf_free(signdata);
        hostkeys_update_ctx_free(ctx);
        hostkeys_update_complete = 1;
        client_repledge();