Merged revisions 58354 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 8 Mar 2007 13:27:02 +0000 (13:27 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 8 Mar 2007 13:27:02 +0000 (13:27 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58354 | kpfleming | 2007-03-08 08:23:46 -0500 (Thu, 08 Mar 2007) | 2 lines

this change was not needed; fclose() handles closing the file descriptor already

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58355 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/http.c

index b6b2abe..6c604f1 100644 (file)
@@ -634,9 +634,7 @@ static void *httpd_helper_thread(void *data)
                free(title);
 
 done:
-       if (ser->f)
-               fclose(ser->f);
-       close(ser->fd);
+       fclose(ser->f);
        free(ser);
        return NULL;
 }