Possible bug in cPipe

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

 



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


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux