1
0
mirror of https://github.com/php/php-src.git synced 2026-04-07 16:13:32 +02:00

Fixed invalid free

This commit is contained in:
Dmitry Stogov
2014-03-21 00:34:03 +04:00
parent 6186bc6dff
commit ee0ecc83d5

View File

@@ -36,7 +36,9 @@ void free_zend_constant(zval *zv)
} else {
zval_internal_dtor(&c->value);
}
STR_RELEASE(c->name);
if (c->name) {
STR_RELEASE(c->name);
}
free(c);
}