summaryrefslogtreecommitdiff
path: root/nit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2021-12-14 21:15:02 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2021-12-14 21:15:02 +0100
commitf275346ecc6bccb5d9cdf56e4e553ff45e941f50 (patch)
treedf07f9fbb4154376c4311c52dc6a6e4e7dc37d4b /nit.c
parent33b47142e47ae73438f8562c808b0e8dad460199 (diff)
downloadvdr-f275346ecc6bccb5d9cdf56e4e553ff45e941f50.tar.gz
vdr-f275346ecc6bccb5d9cdf56e4e553ff45e941f50.tar.bz2
Fixed a memory leak in handling the NIT
Diffstat (limited to 'nit.c')
-rw-r--r--nit.c4
1 files changed, 3 insertions, 1 deletions
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)); ) {