summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/url_scanner_ex.re6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/url_scanner_ex.re b/ext/standard/url_scanner_ex.re
index d17ef1259f..c95f90a95a 100644
--- a/ext/standard/url_scanner_ex.re
+++ b/ext/standard/url_scanner_ex.re
@@ -447,9 +447,6 @@ PHP_MSHUTDOWN_FUNCTION(url_scanner)
PHP_RINIT_FUNCTION(url_scanner)
{
BG(url_adapt_state_ex).active = 0;
-
- smart_str_free(&BG(url_adapt_state_ex).form_app);
- smart_str_free(&BG(url_adapt_state_ex).url_app);
return SUCCESS;
}
@@ -461,5 +458,8 @@ PHP_RSHUTDOWN_FUNCTION(url_scanner)
BG(url_adapt_state_ex).active = 0;
}
+ smart_str_free(&BG(url_adapt_state_ex).form_app);
+ smart_str_free(&BG(url_adapt_state_ex).url_app);
+
return SUCCESS;
}