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);
&follow=1'>Call static_assert by _Static_assertJune McEnroe 2020-06-07Add OpenBSD to install.shJune McEnroe 2020-06-03Add The Song of AchillesJune McEnroe 2020-06-01Allow redirecting input in everJune McEnroe 2020-05-31Add %c conversion to c scriptJune McEnroe 2020-05-31Add c script to READMEJune McEnroe 2020-05-31Add c scriptJune McEnroe 2020-05-31Update mdoc source URLsJune McEnroe 2020-05-26Remove unfinished PSF fontsJune McEnroe