[vdr] Possible bug in cPipe

Stefan Huelswitt s.huelswitt at gmx.de
Thu Jun 22 20:36:11 CEST 2006


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.

Regards.

-- 
Stefan Huelswitt
s.huelswitt at gmx.de  | http://www.muempf.de/



More information about the vdr mailing list