Skip to content

Commit

Permalink
decode_msgpack: do not remove blank lines
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski committed Sep 22, 2023
1 parent f192c16 commit cd3eab8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ctr_decode_msgpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,10 @@ int ctr_decode_msgpack_create(struct ctrace **out_context, char *in_buf, size_t
*offset += in_size - remainder;

mpack_reader_destroy(&reader);

if (result != CTR_DECODE_MSGPACK_SUCCESS) {
ctr_destroy(context.trace);

context.trace = NULL;
}

Expand Down

0 comments on commit cd3eab8

Please sign in to comment.