summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sapi/phpdbg/phpdbg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index c444a72d5f..ec4c4f2df5 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -1805,6 +1805,11 @@ phpdbg_main:
if (php_request_startup() == FAILURE) {
PUTS("Could not startup");
+#ifndef _WIN32
+ if (address) {
+ free(address);
+ }
+#endif
return 1;
}