Skip to content

Commit

Permalink
fix: sub memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jun 20, 2024
1 parent e848b7d commit 4741963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ _z_sample_t _z_sample_create(const _z_keyexpr_t *key, const _z_slice_t *payload,
s.kind = kind;
s.timestamp = timestamp;
s.qos = qos;
s.attachment = _z_bytes_duplicate(&att);
s.attachment._slice = _z_slice_steal((_z_slice_t *)&att._slice);
return s;
}
#else
Expand Down

0 comments on commit 4741963

Please sign in to comment.