Don't unreference pdd with borrowed memory buf

This can lead to memory being deleted twice.
This commit is contained in:
2025-02-06 14:16:43 +01:00
parent e075fd450a
commit b1f8777606

View File

@@ -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()