diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-11-23 11:45:43 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-11-28 12:17:12 -0800 |
commit | da2c235bdaddd1f4aa576f08d9ab8e47a25e03e5 (patch) | |
tree | e3182d25c1afffac538e58e05cbda610de75dfc4 | |
parent | 26d047f821221f516eefa58e56daea7a93cb54e2 (diff) | |
download | uhd-da2c235bdaddd1f4aa576f08d9ab8e47a25e03e5.tar.gz uhd-da2c235bdaddd1f4aa576f08d9ab8e47a25e03e5.tar.bz2 uhd-da2c235bdaddd1f4aa576f08d9ab8e47a25e03e5.zip |
transport: Fixed memory leak in muxed_zero_copy_if
-rw-r--r-- | host/lib/transport/muxed_zero_copy_if.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |