diff options
author | Doug MacEachern <dougm@php.net> | 2001-12-06 01:25:48 +0000 |
---|---|---|
committer | Doug MacEachern <dougm@php.net> | 2001-12-06 01:25:48 +0000 |
commit | 52b711521fbf1ea71a1c34c58ea51e8ff3eeadc4 (patch) | |
tree | 23570707fe376ed6ed0de3019eb94b4a365b8aee | |
parent | 935347ee421cab555b03ec7f9678c5bfc7ab8987 (diff) | |
download | php-git-52b711521fbf1ea71a1c34c58ea51e8ff3eeadc4.tar.gz |
destroy subrequests returned from ap_sub_req_lookup_uri
-rw-r--r-- | sapi/apache2filter/php_functions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/apache2filter/php_functions.c b/sapi/apache2filter/php_functions.c index a9e4994f7b..a805dd0511 100644 --- a/sapi/apache2filter/php_functions.c +++ b/sapi/apache2filter/php_functions.c @@ -62,7 +62,9 @@ PHP_FUNCTION(apache_sub_req) if (rr->status == HTTP_OK) { ap_run_sub_req(rr); RETURN_TRUE; + ap_destroy_sub_req(rr); } + ap_destroy_sub_req(rr); RETURN_FALSE; } @@ -101,8 +103,10 @@ PHP_FUNCTION(apache_lookup_uri) ADD_STRING(path_info); ADD_STRING(args); + ap_destroy_sub_req(rr); return; } + ap_destroy_sub_req(rr); RETURN_FALSE; } |