about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);