From 26412e88881697f2ca54164e20dfe75173d1ffd6 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 27 Dec 2021 11:11:16 +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 785aba52..54564077 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 4.9 2019/05/31 13:25:00 kls Exp $ + * $Id: nit.c 4.9.1.1 2021/12/27 11:09:16 kls Exp $ */ #include "nit.h" @@ -102,8 +102,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