diff options
author | Thomas Punt <tpunt@php.net> | 2018-04-26 16:39:52 +0100 |
---|---|---|
committer | Thomas Punt <tpunt@php.net> | 2018-04-26 16:39:52 +0100 |
commit | 435e812c09b4f1751079356957e24a1a096f93f6 (patch) | |
tree | 5daf090544082b54a4e820493f22f8f72ccdcd7b /sapi/phpdbg | |
parent | 98ef183ed0efb3e470a6c82af1c7c642b8b52799 (diff) | |
download | php-git-435e812c09b4f1751079356957e24a1a096f93f6.tar.gz |
Fix memory leak when phpdbg fails to start up
Diffstat (limited to 'sapi/phpdbg')
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 5 |
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; } |