From e207aafcb289008881bca53df7effa3736f922ce Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 10 Feb 2022 13:13:58 +0000 Subject: [PATCH] Fix a memory leak in the String class Signed-off-by: falkTX --- distrho/extra/String.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distrho/extra/String.hpp b/distrho/extra/String.hpp index 88a7501d..d9a91ca4 100644 --- a/distrho/extra/String.hpp +++ b/distrho/extra/String.hpp @@ -861,7 +861,7 @@ public: std::memcpy(newBuf, fBuffer, fBufferLen); std::memcpy(newBuf + fBufferLen, strBuf, strBufLen + 1); - return String(newBuf); + return String(newBuf, false); } String operator+(const String& str) noexcept