Pbuf crash important fix

This commit is contained in:
Martin Pulec
2014-12-12 19:12:19 +01:00
parent 09c73f07d4
commit eecbdb2d6e

View File

@@ -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);
}
}
}