[vdr] Possible bug in cPipe
Klaus Schmidinger
Klaus.Schmidinger at cadsoft.de
Sat Jun 24 12:13:51 CEST 2006
Stefan Huelswitt wrote:
> Hi,
> It think there is a bug in cPipe::Open() :
>
> if (strcmp(Mode, "r") == 0) {
> mode = "r";
> iopipe = 1;
> }
> close(fd[iopipe]);
> f = fdopen(fd[1 - iopipe], mode);
> if ((f = fdopen(fd[1 - iopipe], mode)) == NULL) {
> LOG_ERROR;
> close(fd[1 - iopipe]);
> }
>
> Seems to be a double fdopen(), leaking some memory/stream
> descriptor.
I believe you're right.
Will be removed in the next maintenance patch.
Klaus
More information about the vdr
mailing list