]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix memory leak in queue size protection
authorJernej Fijačko <jernej@jernej-ThinkCentre-M91p.(none)>
Fri, 30 Sep 2011 11:23:46 +0000 (13:23 +0200)
committerJernej Fijačko <jernej@jernej-ThinkCentre-M91p.(none)>
Fri, 30 Sep 2011 11:23:46 +0000 (13:23 +0200)
src/htsp.c

index 8bb803b1726a43fc58fc0171ad7d0a3cf754cc2e..f786a886416209f447175d0547af43cd643a6ce6 100644 (file)
@@ -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;