From f275346ecc6bccb5d9cdf56e4e553ff45e941f50 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 14 Dec 2021 21:15:02 +0100 Subject: Fixed a memory leak in handling the NIT --- nit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nit.c') diff --git a/nit.c b/nit.c index 980a3b2d..1985fc47 100644 --- a/nit.c +++ b/nit.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: nit.c 5.1 2021/03/16 15:10:54 kls Exp $ + * $Id: nit.c 5.2 2021/12/14 21:15:02 kls Exp $ */ #include "nit.h" @@ -100,8 +100,10 @@ void cNitFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length for (SI::Loop::Iterator it2; (d = ts.transportStreamDescriptors.getNext(it2)); ) { if (d->getDescriptorTag() == SI::S2SatelliteDeliverySystemDescriptorTag) { ForceDVBS2 = true; + delete d; break; } + delete d; } for (SI::Loop::Iterator it2; (d = ts.transportStreamDescriptors.getNext(it2)); ) { -- cgit v1.2.3