[vdr] [ANNOUNCE] VDR developer version 1.3.49 - Memleak

Tobias Grimm listaccount at e-tobi.net
Sat Apr 29 12:56:20 CEST 2006


Klaus Schmidinger wrote:

> Please take a thorough look at the changes - especially the ones
> to the actual program code files - to help avoid any stupid last
> minute bugs.


When checking VDR with valgrind, I found a small memory leak. The
attached patch should fix it.

Regards,

Tobias
-------------- next part --------------
--- vdr-1.3.49.orig/eit.c
+++ vdr-1.3.49/eit.c
@@ -104,7 +104,10 @@
       cComponents *Components = NULL;
       for (SI::Loop::Iterator it2; (d = SiEitEvent.eventDescriptors.getNext(it2)); ) {
           if (ExternalData && d->getDescriptorTag() != SI::ComponentDescriptorTag)
+          {
+             delete d;
              continue;
+          }  
           switch (d->getDescriptorTag()) {
             case SI::ExtendedEventDescriptorTag: {
                  SI::ExtendedEventDescriptor *eed = (SI::ExtendedEventDescriptor *)d;


More information about the vdr mailing list