Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: vdr-memory-leak?
Guido Fiala wrote:
>
> After watching some recordings and doing one recording vdr shows up the
> following
>
> >ps -aux
> video 5807 1.5 10.6 134600 13488 ? S 16:37 1:00
> /usr/local/bin/vdr -w 20 -D 0 -l 0 -v /data1/videos
> video 5808 0.0 10.6 134600 13488 ? S 16:37 0:00
> /usr/local/bin/vdr -w 20 -D 0 -l 0 -v /data1/videos
> video 5809 2.9 10.6 134600 13488 ? S 16:37 1:52
> /usr/local/bin/vdr -w 20 -D 0 -l 0 -v /data1/videos
>
> See the virtual memory size? 134 MByte, very strange.
>
> It starts with about 5000 and eats up 4-5Mbyte every time a recording is made
> or replayed...
Apparently the index file data is not deleted at the end of a recording
or replay.
You can add the line
cIndexFile::~cIndexFile()
{
if (f >= 0)
close(f);
delete fileName;
+ delete index;
}
in dvbapi.c to fix this.
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
Home |
Main Index |
Thread Index