From 8b06e3e66a4cf26c02f9e0175263e1a561186c1b Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 28 Jan 2020 10:39:12 -0500 Subject: Remove md5sum function * Fix a few glaring memory leaks --- src/mime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mime.c') diff --git a/src/mime.c b/src/mime.c index 53501cc..33bc017 100644 --- a/src/mime.c +++ b/src/mime.c @@ -69,8 +69,8 @@ Mime *file_mimetype(const char *filename) { type = (Mime *)calloc(1, sizeof(Mime)); type->origin = origin; - type->type = strdup(what); - type->charset = strdup(charset); + type->type = what; + type->charset = charset; split_free(output); split_free(parts); -- cgit