From da2c235bdaddd1f4aa576f08d9ab8e47a25e03e5 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 23 Nov 2016 11:45:43 -0800 Subject: transport: Fixed memory leak in muxed_zero_copy_if --- host/lib/transport/muxed_zero_copy_if.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib') diff --git a/host/lib/transport/muxed_zero_copy_if.cpp b/host/lib/transport/muxed_zero_copy_if.cpp index 7a2b76165..37bea7355 100644 --- a/host/lib/transport/muxed_zero_copy_if.cpp +++ b/host/lib/transport/muxed_zero_copy_if.cpp @@ -106,7 +106,7 @@ private: stream_mrb(size_t size) : _buff(new char[size]) {} ~stream_mrb() { - delete _buff; + delete[] _buff; } void release() {} @@ -118,7 +118,7 @@ private: } private: - char *_buff; + char *_buff; }; class stream_impl : public zero_copy_if -- cgit v1.2.3