Skip to content

Commit

Permalink
Merge pull request #202 from nielsdos/fix
Browse files Browse the repository at this point in the history
Fix #200: Segmentation fault merging keys of maps containing maps
  • Loading branch information
rtheunissen authored Dec 19, 2023
2 parents 9061a39 + 4f06272 commit ddac1ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ds/ds_htable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ddac1ba

Please sign in to comment.