]> granicus.if.org Git - php/commitdiff
Fix memory leak with opcache
authorBob Weinand <bobwei9@hotmail.com>
Fri, 24 Jul 2015 23:08:57 +0000 (01:08 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Fri, 24 Jul 2015 23:08:57 +0000 (01:08 +0200)
sapi/phpdbg/phpdbg_list.c

index d00f944e9bcfa3732b55e35014b5c4985e182cd1..3559517c3edb62260b1c1a5de2a50d1ae836cae8 100644 (file)
@@ -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);
        }