summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-26 20:28:05 -0400
committerJune McEnroe <june@causal.agency>2020-04-26 20:28:05 -0400
commitee67bb8c901e60ae5acb2e6074abfea3ac165b40 (patch)
treea0cb57f10e5b9c89b553864db103a94a98bbe813
parentRename part->id to part->contentID (diff)
downloadbubger-ee67bb8c901e60ae5acb2e6074abfea3ac165b40.tar.gz
bubger-ee67bb8c901e60ae5acb2e6074abfea3ac165b40.zip
Free part.parts.ptr
Oops.
-rw-r--r--archive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/archive.h b/archive.h
index 324f342..09f8f6a 100644
--- a/archive.h
+++ b/archive.h
@@ -121,6 +121,7 @@ static inline void bodyPartFree(struct BodyPart part) {
 		for (size_t i = 0; i < part.parts.len; ++i) {
 			bodyPartFree(part.parts.ptr[i]);
 		}
+		free(part.parts.ptr);
 	}
 	if (part.message.envelope) {
 		envelopeFree(*part.message.envelope);