Fixed potential memory leaks

This commit is contained in:
Dmitry Stogov 2015-12-07 18:25:25 +03:00
parent 007262207e
commit 3d8fdd5d6e
2 changed files with 2 additions and 0 deletions

View File

@ -937,6 +937,7 @@ static void assemble_code_blocks(zend_cfg *cfg, zend_op_array *op_array)
opline++;
}
}
free_alloca(map, use_heap);
}
/* adjust early binding list */

View File

@ -380,6 +380,7 @@ void zend_optimizer_remove_live_range(zend_op_array *op_array, uint32_t var)
opline++;
}
}
free_alloca(map, use_heap);
}
}