Memory leak liquidated - free the SSH_MSG_CHANNEL_REQUEST packet data

after processing 'exit-status' message
This commit is contained in:
Mikhail Gusarov 2005-06-23 08:22:04 +00:00
parent 77bd3c1215
commit 2e097c7760

View File

@ -511,6 +511,9 @@ static int libssh2_packet_add(LIBSSH2_SESSION *session, unsigned char *data, siz
#endif
channel->exit_status = libssh2_ntohu32(data + 9 + sizeof("exit-status"));
}
LIBSSH2_FREE(session, data);
return 0;
}
}
break;