summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-08-11 22:15:28 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2019-08-11 22:15:28 +0200
commit7e756473254947a50355ff83ff5a559251de0a11 (patch)
tree4294aa8ca9694c27a0ebe07045862626dfe57d12 /src
parent14b523c61bd6ac032100c270edfbae43824463b8 (diff)
downloadcc4group-7e756473254947a50355ff83ff5a559251de0a11.tar.gz
cc4group-7e756473254947a50355ff83ff5a559251de0a11.zip
Also clean up memory for the deleted entry in cc4group_deleteEntry
Diffstat (limited to 'src')
-rw-r--r--src/cc4group.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index 6dc7544..97fa93c 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -2469,6 +2469,11 @@ static bool cc4group_deleteEntry(CC4Group* const this, const char* const path, b
}
}
+ if(deleteEntry->value.data != NULL)
+ {
+ cc4group_applyMemoryManagementEnd(deleteEntry->value.memoryManagement, deleteEntry->value.data);
+ }
+
GroupEntryList* parentChildren = cc4group_getChildren(this, parent);
assert(parentChildren); // if there was an error, it should have really been catched already in cc4group_getParentAndChildEntries