Skip to content
Permalink
Browse files
8269064: Dropped messages of AsyncLogWriter cause memleak
Reviewed-by: dholmes, simonis
  • Loading branch information
Xin Liu authored and simonis committed Jun 23, 2021
1 parent ce917b2 commit 1323be54d26833d261ef5b53ae0ee9b58a96aabb
Showing 1 changed file with 1 addition and 0 deletions.
@@ -46,6 +46,7 @@ void AsyncLogWriter::enqueue_locked(const AsyncLogMessage& msg) {
uint32_t* counter = _stats.add_if_absent(msg.output(), 0, &p_created);
*counter = *counter + 1;
// drop the enqueueing message.
os::free(msg.message());
return;
}

0 comments on commit 1323be5

Please sign in to comment.