Skip to content

Commit

Permalink
upstream: Plug mem leak of msg when processing a quit message.
Browse files Browse the repository at this point in the history
Coverity CID#427852, ok djm@

OpenBSD-Commit-ID: bf85362addbe2134c3d8c4b80f16601fbff823b7
  • Loading branch information
daztucker committed Nov 24, 2023
1 parent 1d7f9b6 commit 3d44a5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clientloop.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: clientloop.c,v 1.401 2023/11/15 22:51:49 djm Exp $ */
/* $OpenBSD: clientloop.c,v 1.402 2023/11/24 00:31:30 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
Expand Down Expand Up @@ -211,6 +211,7 @@ quit_message(const char *fmt, ...)

if ((r = sshbuf_putf(stderr_buffer, "%s\r\n", msg)) != 0)
fatal_fr(r, "sshbuf_putf");
free(msg);
quit_pending = 1;
}

Expand Down

0 comments on commit 3d44a5c

Please sign in to comment.