From: Peter Howkins Date: Wed, 4 Jul 2018 21:36:39 +0000 (+0100) Subject: dtcm: Coverity 89452 and 89661 X-Git-Tag: 2.3.0a~177 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=27e3d9a42aa797723c8b6f96860d26967d77d418;p=oweals%2Fcde.git dtcm: Coverity 89452 and 89661 --- diff --git a/cde/programs/dtcm/dtcm/RFCMIME.c b/cde/programs/dtcm/dtcm/RFCMIME.c index f5fb02f5..62fee6d3 100644 --- a/cde/programs/dtcm/dtcm/RFCMIME.c +++ b/cde/programs/dtcm/dtcm/RFCMIME.c @@ -1532,6 +1532,9 @@ rfc1522cpy(char * buf, const char * value) strncat(buf,"=?", 2); strncat(buf,_tmp2_, strlen(_tmp2_)); strncat(buf,"?q?", 3); + + free(_tmp1_); + free(_tmp2_); } else if ( !strncasecmp( ret_codeset, "ISO-2022-JP", 11 ) ) { /* * According to RFC1468, in the Header Field, we should use