summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-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 c0152b1f75..abb2e38868 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -1809,6 +1809,11 @@ phpdbg_main:
if (php_request_startup() == FAILURE) {
PUTS("Could not startup");
+#ifndef _WIN32
+ if (address) {
+ free(address);
+ }
+#endif
return 1;
}