1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-09-15 04:08:07 -04:00

Plug an fd leak, triggered by using -q.

git-svn-id: https://svn.xiph.org/trunk/ezstream@13257 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
moritz 2007-07-14 01:20:45 +00:00
parent 522ccd69fe
commit ec14d3b017

View File

@ -610,8 +610,11 @@ openResource(shout_t *shout, const char *fileName, int *popenFlag,
}
xfree(pCommandString);
if (qFlag)
if (qFlag) {
dup2(stderr_fd, fileno(stderr));
if (stderr_fd > 2)
close(stderr_fd);
}
return (filep);
}