dont free unallocated block ,and dont close a fd
authorMatt O'Gorman <mogorman@digium.com>
Thu, 27 Apr 2006 18:57:45 +0000 (18:57 +0000)
committerMatt O'Gorman <mogorman@digium.com>
Thu, 27 Apr 2006 18:57:45 +0000 (18:57 +0000)
we never opened. bug #7045

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

http.c

diff --git a/http.c b/http.c
index 736dfbd..74c429a 100644 (file)
--- a/http.c
+++ b/http.c
@@ -493,9 +493,6 @@ static void *http_root(void *data)
                                close(ser->fd);
                                free(ser);
                        }
-               } else {
-                       close(ser->fd);
-                       free(ser);
                }
        }
        return NULL;