Fix memory leak in queue size protection
This commit is contained in:
parent
d4562ecdeb
commit
60e5a1014c
1 changed files with 3 additions and 0 deletions
|
@ -1508,6 +1508,9 @@ htsp_stream_deliver(htsp_subscription_t *hs, th_pkt_t *pkt)
|
|||
|
||||
hs->hs_dropstats[pkt->pkt_frametype]++;
|
||||
|
||||
// destroy the already created htsmsg to avoid memory leaks
|
||||
htsmsg_destroy(m);
|
||||
|
||||
/* Queue size protection */
|
||||
pkt_ref_dec(pkt);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue