Fix incorrect prop_name release

After 2c4346f9de the property
name should no longer be released.

This should fix the preloading failure under asan.
This commit is contained in:
Nikita Popov 2021-03-30 12:51:41 +02:00
parent 202a701a4e
commit fba8b955e9

View file

@ -2080,8 +2080,6 @@ static void zend_do_traits_property_binding(zend_class_entry *ce, zend_class_ent
ZSTR_VAL(prop_name),
ZSTR_VAL(ce->name));
}
zend_string_release_ex(prop_name, 0);
continue;
}
}
@ -2108,8 +2106,6 @@ static void zend_do_traits_property_binding(zend_class_entry *ce, zend_class_ent
GC_ADDREF(new_prop->attributes);
}
}
zend_string_release_ex(prop_name, 0);
} ZEND_HASH_FOREACH_END();
}
}