From b1f87776061269719f23e4e39edf88deb3cfebfe Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 6 Feb 2025 14:16:43 +0100 Subject: [PATCH] Don't unreference pdd with borrowed memory buf This can lead to memory being deleted twice. --- src/gdd/gddTest.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gdd/gddTest.cc b/src/gdd/gddTest.cc index 881a55df9..fb18630bf 100644 --- a/src/gdd/gddTest.cc +++ b/src/gdd/gddTest.cc @@ -307,7 +307,6 @@ void gdd::test() pdd->convertAddressToOffsets(); pdd->convertOffsetsToAddress(); pdd->dump(); - pdd->unreference(); delete [] buf; } #endif @@ -509,7 +508,6 @@ void gddContainer::test(void) cdd1->dump(); fprintf(stderr,"=====RE-DUMP OF ORIGINAL CONTAINER:\n"); dump(); - cdd1->unreference(); delete [] buf; // test copy(), Dup(), copyInfo()