mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2025-01-03 14:56:35 -05: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:
parent
522ccd69fe
commit
ec14d3b017
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user