Skip to content

Commit

Permalink
Mitigated bug in logs with a double free corruption.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Nov 28, 2019
1 parent eb68f25 commit cf0c6f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/log/source/log_aspect_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ static int log_aspect_stream_impl_write_cb(log_aspect aspect, log_policy policy,

if (format_impl->serialize(format, write_args->record, buffer, size) != 0)
{
free(buffer);
/* TODO: Workaround of a double free, review this */
/*free(buffer);*/

return 1;
}
Expand Down

0 comments on commit cf0c6f1

Please sign in to comment.