coolkey/coolkey-valgrind-error.patch

13 lines
554 B
Diff

diff -ruNp coolkey-1.1.0.orig/src/coolkey/slot.cpp coolkey-1.1.0/src/coolkey/slot.cpp
--- coolkey-1.1.0.orig/src/coolkey/slot.cpp 2009-02-06 09:57:38.769657000 +0100
+++ coolkey-1.1.0/src/coolkey/slot.cpp 2009-02-06 09:57:47.440733391 +0100
@@ -1456,7 +1456,7 @@ SlotMemSegment::SlotMemSegment(const cha
}
sprintf(segName,SEGMENT_PREFIX"%s",readerName);
segment = SHMem::initSegment(segName, MAX_OBJECT_STORE_SIZE, needInit);
- delete segName;
+ delete [] segName;
if (!segment) {
// just run without shared memory
return;