Skip to content

Commit

Permalink
fix: double suffix allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jul 2, 2024
1 parent 411725c commit dedef05
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/protocol/keyexpr.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ int8_t _z_keyexpr_copy(_z_keyexpr_t *dst, const _z_keyexpr_t *src) {
return _Z_ERR_SYSTEM_OUT_OF_MEMORY;
}
dst->_id = src->_id;
dst->_suffix = src->_suffix ? _z_str_clone(src->_suffix) : NULL;
dst->_mapping = src->_mapping;
_z_keyexpr_set_owns_suffix(dst, true);
return _Z_RES_OK;
Expand Down

0 comments on commit dedef05

Please sign in to comment.