aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h
index 7327846d..47eb45a3 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -51,6 +51,7 @@ static inline void a_Misc_parse_content_disposition(const char *disposition, cha
}
if (!strchr(terminators, *s)) {
+ dFree(*type);
*type = NULL;
return;
}
@@ -100,6 +101,7 @@ static inline void a_Misc_parse_content_disposition(const char *disposition, cha
d++;
}
} else if (!quoted && (!d_isascii((uchar_t)*s) || *s == '=')) {
+ dFree(*filename);
*filename = NULL;
return;
} else {