From: Anatol Belski Date: Sat, 27 Aug 2016 20:24:24 +0000 (+0200) Subject: fix leak X-Git-Tag: php-7.1.0RC1~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d58202853d70e32b5836ac327a44df06adeb57e3;p=php fix leak --- 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