[ANNOUNCE] VDR developer version 1.3.49 - Memleak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux