summaryrefslogtreecommitdiff
path: root/Zend/zend_virtual_cwd.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-08-27 22:24:24 +0200
committerAnatol Belski <ab@php.net>2016-08-27 22:24:24 +0200
commitd58202853d70e32b5836ac327a44df06adeb57e3 (patch)
tree97428518e4c619941049d2c3b11b27c6690da80f /Zend/zend_virtual_cwd.c
parent3a78530b8a876bfc78abe45245184a982e1ad447 (diff)
downloadphp-git-d58202853d70e32b5836ac327a44df06adeb57e3.tar.gz
fix leak
Diffstat (limited to 'Zend/zend_virtual_cwd.c')
-rw-r--r--Zend/zend_virtual_cwd.c1
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