Mailing List archive

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

[vdr] Re: vdr 1.3.20: using of free'd memory



C.Y.M wrote:
Stefan Huelswitt wrote:

Hi,
in recording.c cRecording::ScanVideoDir() is a place where
already free'd memory is used:

free(buffer);
buffer = ReadLink(buffer);

IMO this should be like:

char *old=buffer;
buffer = ReadLink(old);
free(old);

Thanks for the patch, Stefan.  I am using it and it works well.

@Klause:  do you have any comments about this patch?
Well, apparently Stefan is right.

Klaus




Home | Main Index | Thread Index