summaryrefslogtreecommitdiffstats
path: root/src/cc4group.c
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-04-20 02:10:03 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2019-04-20 02:43:37 +0200
commitb6b269ecdecd80c3d1fae823a4c94f4afc72c125 (patch)
treeab39584660ef5e7416b4fd852016d5fa5d744d89 /src/cc4group.c
parent43931c7e187bda85e2be12bccb14bd826a6c34c0 (diff)
downloadcc4group-b6b269ecdecd80c3d1fae823a4c94f4afc72c125.tar.gz
cc4group-b6b269ecdecd80c3d1fae823a4c94f4afc72c125.zip
Fix memory leak in cc4group_createDirectory
Diffstat (limited to 'src/cc4group.c')
-rw-r--r--src/cc4group.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index 3782681..724a8b5 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -2181,6 +2181,8 @@ static bool cc4group_createDirectory(CC4Group* const this, const char* const pat
entry->header = header;
entry->core.Directory = 1;
+ AddCleanUpJob(free, header);
+
return true;
}