dtcm: Coverity 89452 and 89661
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 21:36:39 +0000 (22:36 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 21:36:39 +0000 (22:36 +0100)
cde/programs/dtcm/dtcm/RFCMIME.c

index f5fb02f599e2f5691b0b3ceab7f02ad840b171ba..62fee6d34d99a326c0975e0ea00491cefe0c5afe 100644 (file)
@@ -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