From eecbdb2d6e0bdfff04270700ea42ec87b1808c3a Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 12 Dec 2014 19:12:19 +0100 Subject: [PATCH] Pbuf crash important fix --- src/rtp/pbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rtp/pbuf.c b/src/rtp/pbuf.c index c8e7129e7..b023c1640 100644 --- a/src/rtp/pbuf.c +++ b/src/rtp/pbuf.c @@ -206,7 +206,7 @@ static void add_coded_unit(struct pbuf_node *node, rtp_packet * pkt) if (curr == NULL){ /* this is bad, out of memory, drop the packet... */ free(pkt); - free_cdata(tmp); + free(tmp); } else { while (curr != NULL && ((int16_t)(tmp->seqno - curr->seqno) < 0)){ prv = curr; @@ -224,7 +224,7 @@ static void add_coded_unit(struct pbuf_node *node, rtp_packet * pkt) } else { /* this is bad, something went terribly wrong... */ free(pkt); - free_cdata(tmp); + free(tmp); } } }