X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqtypes.c;fp=src%2Fphp_pqtypes.c;h=ef169d36556020525fb4969fa4af15ce8189c3fc;hp=a95c257e15d939166359b761aa1c8a99b585739c;hb=e381164032a750583657e449875f62d52b7b6609;hpb=aa4ab7e163ce6f6b3705857ac9ed7f9bb57fe0fb 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; } }