1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

messages: Fix a possible memory leak.

This commit is contained in:
Andreas Schneider
2013-06-19 12:29:54 +02:00
parent aed9d7a84d
commit 36e4c2e5bc

View File

@@ -1254,6 +1254,7 @@ SSH_PACKET_CALLBACK(ssh_packet_global_request){
msg = ssh_message_new(session); msg = ssh_message_new(session);
if (msg == NULL) { if (msg == NULL) {
ssh_string_free_char(request);
return SSH_PACKET_NOT_USED; return SSH_PACKET_NOT_USED;
} }
msg->type = SSH_REQUEST_GLOBAL; msg->type = SSH_REQUEST_GLOBAL;