diff --git a/src/ds/ds_htable.c b/src/ds/ds_htable.c index 01ad20c..cd53772 100644 --- a/src/ds/ds_htable.c +++ b/src/ds/ds_htable.c @@ -705,6 +705,7 @@ void ds_htable_put(ds_htable_t *table, zval *key, zval *value) // If found, destruct the current value so that we can replace it. if (found) { zval_ptr_dtor(&bucket->value); + ZVAL_UNDEF(&bucket->value); } if (value) {