From: Mark Spencer Date: Sat, 27 Dec 2003 23:39:57 +0000 (+0000) Subject: Fix EAGI fd leak (bug #698) X-Git-Tag: 0.7.0~129 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7bd21bc0aae0587f3e3008bd3b87bcec87d1844;p=thirdparty%2Fasterisk.git Fix EAGI fd leak (bug #698) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1883 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_agi.c b/apps/app_agi.c index 57e37e22bc..8ca56f42ac 100755 --- a/apps/app_agi.c +++ b/apps/app_agi.c @@ -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;