diff options
author | Anatol Belski <ab@php.net> | 2016-08-27 22:24:24 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-08-27 22:24:24 +0200 |
commit | d58202853d70e32b5836ac327a44df06adeb57e3 (patch) | |
tree | 97428518e4c619941049d2c3b11b27c6690da80f /Zend/zend_virtual_cwd.c | |
parent | 3a78530b8a876bfc78abe45245184a982e1ad447 (diff) | |
download | php-git-d58202853d70e32b5836ac327a44df06adeb57e3.tar.gz |
fix leak
Diffstat (limited to 'Zend/zend_virtual_cwd.c')
-rw-r--r-- | Zend/zend_virtual_cwd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c index bc7826440e..ce5f1ff066 100644 --- a/Zend/zend_virtual_cwd.c +++ b/Zend/zend_virtual_cwd.c @@ -1406,6 +1406,7 @@ verify: tmp = erealloc(state->cwd, state->cwd_length+1); if (tmp == NULL) { + CWD_STATE_FREE(&old_state); #if VIRTUAL_CWD_DEBUG fprintf (stderr, "Out of memory\n"); #endif |