summaryrefslogtreecommitdiff
path: root/socket
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-09-23 15:20:31 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-09-23 15:20:56 +0100
commit34502d67f31154050f86f15833d2362f08a6aeb2 (patch)
tree03740ce5987d3576554f775ee6f40030656b59a9 /socket
parent26202dd0b47d18f32a733251881764f4b6f30c30 (diff)
downloadlibnice-34502d67f31154050f86f15833d2362f08a6aeb2.tar.gz
socket: Fix a leak on the slow TURN packet handling path
Diffstat (limited to 'socket')
-rw-r--r--socket/udp-turn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/socket/udp-turn.c b/socket/udp-turn.c
index fea2e00..70bab4e 100644
--- a/socket/udp-turn.c
+++ b/socket/udp-turn.c
@@ -1128,6 +1128,7 @@ nice_udp_turn_socket_parse_recv_message (NiceSocket *sock, NiceSocket **from_soc
message->from, buf_len, buf,
message->from, buf, buf_len);
len = memcpy_buffer_to_input_message (message, buf, len);
+ g_free (buf);
return (len > 0) ? 1 : 0;
}