From cfb1756fd75361d226f2d7e0478d2c30cbab9796 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sun, 30 Aug 2015 02:19:48 +0200 Subject: [PATCH] PHP7 adapt: fix double free --- v8js_class.cc | 2 -- v8js_v8object_class.cc | 2 -- 2 files changed, 4 deletions(-) diff --git a/v8js_class.cc b/v8js_class.cc index 0047e25..9361801 100644 --- a/v8js_class.cc +++ b/v8js_class.cc @@ -179,8 +179,6 @@ static void v8js_free_storage(zend_object *object TSRMLS_DC) /* {{{ */ c->modules_stack.~vector(); c->modules_base.~vector(); - - efree(c); } /* }}} */ diff --git a/v8js_v8object_class.cc b/v8js_v8object_class.cc index 4eb46e7..7752e71 100644 --- a/v8js_v8object_class.cc +++ b/v8js_v8object_class.cc @@ -404,8 +404,6 @@ static void v8js_v8object_free_storage(zend_object *object TSRMLS_DC) /* {{{ */ c->v8obj.Reset(); c->ctx->v8js_v8objects.remove(c); } - - efree(c); } /* }}} */