From: Michael Wallner Date: Wed, 19 Aug 2015 16:54:52 +0000 (+0200) Subject: fix leak in DBG+ZTS X-Git-Tag: v2.0.0RC1~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e381164032a750583657e449875f62d52b7b6609;p=m6w6%2Fext-pq fix leak in DBG+ZTS --- 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; } }