Fix memory leak.

This commit is contained in:
AZ Huang 2014-04-10 06:15:40 +08:00
parent e4a5c0ca09
commit 416a079134

View File

@ -752,6 +752,7 @@ int rtp_send_msg ( RTPSession *session, Messenger *messenger, const uint8_t *dat
/*if ( full_length != sendpacket ( messenger->net, *((IP_Port*) &session->dest), _send_data, full_length) ) {*/
if ( full_length != send_custom_user_packet(messenger, session->dest, _send_data, full_length) ) {
/*fprintf(stderr, "Rtp error: %s\n", strerror(errno));*/
rtp_free_msg ( session, msg );
return -1;
}