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:
@@ -1254,6 +1254,7 @@ SSH_PACKET_CALLBACK(ssh_packet_global_request){
|
||||
|
||||
msg = ssh_message_new(session);
|
||||
if (msg == NULL) {
|
||||
ssh_string_free_char(request);
|
||||
return SSH_PACKET_NOT_USED;
|
||||
}
|
||||
msg->type = SSH_REQUEST_GLOBAL;
|
||||
|
||||
Reference in New Issue
Block a user