Skip to content

Commit d27dac1

Browse files
Set c->attributes to NULL?
1 parent 91889c7 commit d27dac1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_constants.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ void free_zend_constant(zval *zv)
5252
}
5353
if (c->attributes) {
5454
zend_hash_release(c->attributes);
55+
c->attributes = NULL;
5556
}
5657
efree(c);
5758
} else {
@@ -64,6 +65,7 @@ void free_zend_constant(zval *zv)
6465
}
6566
if (c->attributes) {
6667
zend_hash_release(c->attributes);
68+
c->attributes = NULL;
6769
}
6870
free(c);
6971
}

0 commit comments

Comments
 (0)