From 7cbf6dcbf710a977255611f8c32d3ac83489a3e8 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 29 Mar 2014 13:05:51 +0300 Subject: [PATCH] async_sink fixes --- include/c11log/sinks/async_sink.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/c11log/sinks/async_sink.h b/include/c11log/sinks/async_sink.h index 8f532049..f84e845e 100644 --- a/include/c11log/sinks/async_sink.h +++ b/include/c11log/sinks/async_sink.h @@ -74,7 +74,6 @@ inline void c11log::sinks::async_sink::_sink_it(const details::log_msg& msg) //re allocate on the heap the (stack based) message auto new_msg = new details::log_msg(); *new_msg = msg; - auto msg_size = msg.msg_buf.second; char *buf = new char[msg_size]; std::memcpy(buf, msg.msg_buf.first, msg_size);