* ditch mem-leak
authorMichael Wallner <mike@php.net>
Tue, 22 Feb 2005 12:41:44 +0000 (12:41 +0000)
committerMichael Wallner <mike@php.net>
Tue, 22 Feb 2005 12:41:44 +0000 (12:41 +0000)
http_api.c

index 8b80c4df33cd6f2e8fa7735ca5aef027387d4406..e2e04208a531e037ebaf47f5070558fbb5c32309 100644 (file)
@@ -533,6 +533,7 @@ static inline void _http_curl_setopts(CURL *ch, const char *url, HashTable *opti
 
                if (qstr.c) {
                        curl_easy_setopt(ch, CURLOPT_COOKIE, qstr.c);
+                       efree(qstr.c);
                }
        }