aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-10-08 21:15:23 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-10-12 08:07:02 +0200
commitdde3deb9ea1656277452b8108000c982195af415 (patch)
treecb6488af67026e4cb2cc6b1b89381a507bf69206
parent66045054f46c50add4099ead6d87c3345987eab8 (diff)
downloadlibssh-dde3deb9ea1656277452b8108000c982195af415.tar.gz
libssh-dde3deb9ea1656277452b8108000c982195af415.tar.xz
libssh-dde3deb9ea1656277452b8108000c982195af415.zip
channels: Don't leak memory in channel_rcv_request callback.
Found by Coverity.
-rw-r--r--src/channels.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/channels.c b/src/channels.c
index 027fe356..709598f2 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -730,6 +730,7 @@ SSH_PACKET_CALLBACK(channel_rcv_request) {
sig,
channel->callbacks->userdata);
}
+ SAFE_FREE(sig);
leave_function();
return SSH_PACKET_USED;