]> granicus.if.org Git - php/commitdiff
fix leak
authorAnatol Belski <ab@php.net>
Sat, 27 Aug 2016 20:24:24 +0000 (22:24 +0200)
committerAnatol Belski <ab@php.net>
Sat, 27 Aug 2016 20:24:24 +0000 (22:24 +0200)
Zend/zend_virtual_cwd.c

index bc7826440eb11340222dedc4c3c3cf05c66dfe10..ce5f1ff066242d3d2f957d1c16be224d675ccf4e 100644 (file)
@@ -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