Browse Source

dtool: Fix memory leak in OEncryptStream/IDecryptStream

Fixes #1114
rdb 4 years ago
parent
commit
08f344b00c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      dtool/src/prc/encryptStreamBuf.cxx

+ 4 - 0
dtool/src/prc/encryptStreamBuf.cxx

@@ -95,6 +95,10 @@ EncryptStreamBuf::
 ~EncryptStreamBuf() {
   close_read();
   close_write();
+
+#ifdef PHAVE_IOSTREAM
+  delete[] eback();
+#endif
 }
 
 /**