From e381164032a750583657e449875f62d52b7b6609 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 19 Aug 2015 18:54:52 +0200 Subject: [PATCH] fix leak in DBG+ZTS --- src/php_pqtypes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/php_pqtypes.c b/src/php_pqtypes.c index a95c257..ef169d3 100644 --- a/src/php_pqtypes.c +++ b/src/php_pqtypes.c @@ -114,6 +114,9 @@ static int php_pqtypes_object_has_dimension(zval *object, zval *member, int chec return Z_TYPE_P(data) != IS_NULL; } } else { + if (key) { + zend_string_release(key); + } return 1; } }