diff options
author | Thomas Punt <tpunt@php.net> | 2018-04-26 16:44:02 +0100 |
---|---|---|
committer | Thomas Punt <tpunt@php.net> | 2018-04-26 16:44:02 +0100 |
commit | d08f1c5f5b5375f8207e71d0d4102eccd0d2ee1f (patch) | |
tree | 9baf5daf9e314f01c574bd2864a686a6ccc9fbbd /sapi/phpdbg/phpdbg.c | |
parent | 31822920151b82b33db4e76d6c820e5252dd4317 (diff) | |
parent | b3fff5fc412fa8f2e2243e7e625e7e3daf9639fb (diff) | |
download | php-git-d08f1c5f5b5375f8207e71d0d4102eccd0d2ee1f.tar.gz |
Merge branch 'PHP-7.2'
* PHP-7.2:
Fix memory leak when phpdbg fails to start up
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-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 d71e02f907..1e0f44fcf2 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -1807,6 +1807,11 @@ phpdbg_main: if (php_request_startup() == FAILURE) { PUTS("Could not startup"); +#ifndef _WIN32 + if (address) { + free(address); + } +#endif return 1; } |