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 a95c257..ef169d3 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;
                }
        }