From 96d23dc444db72fee277339c0d4287ab9348def6 Mon Sep 17 00:00:00 2001 From: Stefano Picerno Date: Sun, 13 Oct 2024 15:09:28 +0200 Subject: [PATCH 1/2] Fixed mismatched delete -> delete[] --- src/RLE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RLE.cpp b/src/RLE.cpp index 735e5d343..5469173b0 100644 --- a/src/RLE.cpp +++ b/src/RLE.cpp @@ -72,7 +72,7 @@ RLE_Data::~RLE_Data() void RLE_Data::ResetEncoder() { - delete m_buff; + delete [] m_buff; m_len = 0; m_buff = 0; } From 402f5278894408a28c6b169730e668c81631d9a1 Mon Sep 17 00:00:00 2001 From: Stefano Picerno Date: Sat, 19 Oct 2024 17:48:35 +0200 Subject: [PATCH 2/2] Fixed socket leak reported by Valgrind --- src/LibSocketAsio.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LibSocketAsio.cpp b/src/LibSocketAsio.cpp index 5f8b02652..08db91ced 100644 --- a/src/LibSocketAsio.cpp +++ b/src/LibSocketAsio.cpp @@ -132,6 +132,7 @@ class CAsioSocketImpl { delete[] m_readBuffer; delete[] m_sendBuffer; + delete m_socket; } void Notify(bool notify)