- fix leak with bodyonly request option
authorMichael Wallner <mike@php.net>
Wed, 30 Nov 2005 11:55:55 +0000 (11:55 +0000)
committerMichael Wallner <mike@php.net>
Wed, 30 Nov 2005 11:55:55 +0000 (11:55 +0000)
http_functions.c

index 90350e2d23dec09c880fec6048522a0200ba5806..f7ecd7af76f8b087e237c0e170db9d0c8a1f7eae 100644 (file)
@@ -985,6 +985,7 @@ PHP_FUNCTION(http_match_request_header)
                        if (msg) { \
                                RETVAL_STRINGL(PHPSTR_VAL(&msg->body), PHPSTR_LEN(&msg->body), 1); \
                                http_message_free(&msg); \
+                               phpstr_dtor(&response); \
                                return; \
                        } \
                } else { \