Skip to content

Commit 9aa5967

Browse files
committed
Fixed memory leaks
1 parent f66627a commit 9aa5967

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/jit/zend_jit_disasm_x86.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ static void zend_jit_disasm_destroy_symbols(zend_sym_node *n) {
190190
if (n) {
191191
if (n->child[0]) {
192192
zend_jit_disasm_destroy_symbols(n->child[0]);
193-
} else if (n->child[1]) {
193+
}
194+
if (n->child[1]) {
194195
zend_jit_disasm_destroy_symbols(n->child[1]);
195196
}
196197
free(n);

0 commit comments

Comments
 (0)