[patch] libdvbpsi leaks memory with demux attached

Johann Hanne jhml at gmx.net
Mon Sep 22 19:33:15 CEST 2003


Hi all,

when you do a AttachDemux() and feed packets to it with dvbpsi_PushPacket(), 
allocated memory doesn't get free()d again for each arriving subtable that 
doesn't have a subdecoder assigned to it. The reason is that dvbpsi_Demux() 
does not free the p_section if it doesn't find a subdecoder. The attached 
patch fixes this problem.

Cheers, Jonny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memleak-fix.patch
Type: text/x-diff
Size: 531 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/libdvbpsi-devel/attachments/20030922/e30d10dd/attachment.patch 


More information about the libdvbpsi-devel mailing list