Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: VDR 1.1.31 EPG memory leak?
Rantanen Teemu (teemu.rantanen@tekla.com) wrote:
> On a multi-language EPG channel you can get more than one DESCR_SHORT_EVENT
> events (one for each language). It looks to me that the current
> implementation leaks memory in ShortName and ShortText fields in that case.
Hello,
This is problaby my fault. Forgot to free VdrProgramInfo. Try the following
untested patch.
--
-Jonan Santiago
--- vdr-1.1.31/libdtv/libvdr/libvdr.c.orig 2003-05-12 00:54:12.000000000 -0400
+++ vdr-1.1.31/libdtv/libvdr/libvdr.c 2003-05-12 00:57:23.000000000 -0400
@@ -152,8 +152,16 @@
break;
}
}
- if (GotVdrProgramInfo) xAddTail (Result, VdrProgramInfo);
+ if (GotVdrProgramInfo)
+ {
+ xAddTail (Result, VdrProgramInfo);
+ }
+ else
+ {
+ free(VdrProgramInfo);
+ }
}
+
return (Result);
}
Home |
Main Index |
Thread Index