diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-01-28 10:39:12 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-01-28 10:39:12 -0500 |
commit | 8b06e3e66a4cf26c02f9e0175263e1a561186c1b (patch) | |
tree | 8bac5ec5215066ef1fdff4edfd06857324b40f91 /src/mime.c | |
parent | 38ef2cc6dff14f37050ea40ae62e4aea9863c805 (diff) | |
download | spmc-8b06e3e66a4cf26c02f9e0175263e1a561186c1b.tar.gz |
Remove md5sum function
* Fix a few glaring memory leaks
Diffstat (limited to 'src/mime.c')
-rw-r--r-- | src/mime.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |