mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix memory leak.
This commit is contained in:
parent
e4a5c0ca09
commit
416a079134
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user