From: Jernej Fijačko Date: Fri, 30 Sep 2011 11:23:46 +0000 (+0200) Subject: Fix memory leak in queue size protection X-Git-Tag: 2.99~10^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60e5a1014c52e926fb7dbb12392f60a473e44d2c;p=thirdparty%2Ftvheadend.git Fix memory leak in queue size protection --- diff --git a/src/htsp.c b/src/htsp.c index 8bb803b17..f786a8864 100644 --- a/src/htsp.c +++ b/src/htsp.c @@ -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;