summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r--sapi/phpdbg/phpdbg_list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c
index d00f944e9b..3559517c3e 100644
--- a/sapi/phpdbg/phpdbg_list.c
+++ b/sapi/phpdbg/phpdbg_list.c
@@ -342,6 +342,9 @@ void phpdbg_free_file_source(zval *zv) {
efree(data->buf);
}
+ if (!data->destroy_op_array) {
+ efree(data->op_array->refcount);
+ }
if (!data->destroy_op_array || destroy_op_array(data->op_array)) {
efree(data->op_array);
}