fix leak in DBG+ZTS
authorMichael Wallner <mike@php.net>
Wed, 19 Aug 2015 16:54:52 +0000 (18:54 +0200)
committerMichael Wallner <mike@php.net>
Wed, 19 Aug 2015 16:54:52 +0000 (18:54 +0200)
src/php_pqtypes.c

index a95c257e15d939166359b761aa1c8a99b585739c..ef169d36556020525fb4969fa4af15ce8189c3fc 100644 (file)
@@ -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;
                }
        }