Skip to content

Commit

Permalink
add reserve call for serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlion committed Jun 4, 2024
1 parent 2df9c01 commit 08bd0b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/src/ffi_go/ir/serializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ auto serialize_log_event(
}
Serializer* serializer{static_cast<Serializer*>(ir_serializer)};
serializer->m_ir_buf.clear();
serializer->reserve(log_message.m_size);

bool success{false};
if constexpr (std::is_same_v<encoded_variable_t, eight_byte_encoded_variable_t>) {
Expand Down
Binary file modified lib/libclp_ffi_linux_amd64.a
Binary file not shown.

0 comments on commit 08bd0b8

Please sign in to comment.