From 08f344b00c8ac25867a46974e9bc7254960890da Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 16 Feb 2021 11:33:39 +0100 Subject: [PATCH] dtool: Fix memory leak in OEncryptStream/IDecryptStream Fixes #1114 --- dtool/src/prc/encryptStreamBuf.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dtool/src/prc/encryptStreamBuf.cxx b/dtool/src/prc/encryptStreamBuf.cxx index fe562e59e6..a8e7c04967 100644 --- a/dtool/src/prc/encryptStreamBuf.cxx +++ b/dtool/src/prc/encryptStreamBuf.cxx @@ -95,6 +95,10 @@ EncryptStreamBuf:: ~EncryptStreamBuf() { close_read(); close_write(); + +#ifdef PHAVE_IOSTREAM + delete[] eback(); +#endif } /**