From: David Levine Date: Sun, 16 Nov 2014 23:10:52 +0000 (-0600) Subject: Fixed leak in content_charset(): if get_param() found the charset, X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/ab7063841d52a39f11da0210a9c51c88ab06d587?ds=inline;hp=--cc Fixed leak in content_charset(): if get_param() found the charset, it returns a copy. --- ab7063841d52a39f11da0210a9c51c88ab06d587 diff --git a/uip/mhparse.c b/uip/mhparse.c index 56374b23..0ec7712e 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -3649,7 +3649,7 @@ content_charset (CT ct) { ret_charset = get_param(ct->c_ctinfo.ci_first_pm, "charset", '?', 0); - return getcpy (ret_charset ? ret_charset : "US-ASCII"); + return ret_charset ? ret_charset : getcpy ("US-ASCII"); }