- fix leak with post files
authorMichael Wallner <mike@php.net>
Thu, 22 Dec 2005 19:16:46 +0000 (19:16 +0000)
committerMichael Wallner <mike@php.net>
Thu, 22 Dec 2005 19:16:46 +0000 (19:16 +0000)
http_request_object.c

index bf271105162e66c6c2e5f4fe717977bf0740bb3a..a3b132eeaaae4b4b60d50de558feb1777ad58101 100644 (file)
@@ -1359,6 +1359,7 @@ PHP_METHOD(HttpRequest, addPostFile)
        }
        add_next_index_zval(new_post, entry);
        SET_PROP(obj, postFiles, new_post);
+       zval_ptr_dtor(&new_post);
 
        RETURN_TRUE;
 }