edits
[iotcloud.git] / version2 / src / C / Commit.cc
index 5ed8c8902e0ba2fab1735dad0baf5e9e7d5edd88..6c46fed4a036301c8fe2fe89d40b721dc2926d35 100644 (file)
@@ -31,6 +31,14 @@ Commit::Commit(int64_t _sequenceNumber, int64_t _machineId, int64_t _transaction
        liveKeys(new Hashset<IoTString *>) {
 }
 
+Commit::~Commit() {
+       delete parts;
+       delete keyValueUpdateSet;
+       delete liveKeys;
+       if (missingParts != NULL)
+               delete missingParts;
+}
+
 void Commit::addPartDecode(CommitPart *newPart) {
        if (isDead) {
                // If dead then just kill this part and move on