From 27e3d9a42aa797723c8b6f96860d26967d77d418 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 22:36:39 +0100 Subject: [PATCH] dtcm: Coverity 89452 and 89661 --- cde/programs/dtcm/dtcm/RFCMIME.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cde/programs/dtcm/dtcm/RFCMIME.c b/cde/programs/dtcm/dtcm/RFCMIME.c index f5fb02f59..62fee6d34 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