Fix EAGI fd leak (bug #698)
authorMark Spencer <markster@digium.com>
Sat, 27 Dec 2003 23:39:57 +0000 (23:39 +0000)
committerMark Spencer <markster@digium.com>
Sat, 27 Dec 2003 23:39:57 +0000 (23:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1883 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_agi.c

index 57e37e2..8ca56f4 100755 (executable)
@@ -167,6 +167,10 @@ static int launch_script(char *script, char *args, int *fds, int *efd, int *opid
        /* close what we're not using in the parent */
        close(toast[1]);
        close(fromast[0]);
+
+       // [PHM 12/18/03]
+       close(audio[0])
+
        *opid = pid;
        return 0;