From: Peter Howkins Date: Wed, 4 Jul 2018 21:33:03 +0000 (+0100) Subject: dtcm: Coverity 88768, 89297 and 89115 X-Git-Tag: 2.3.0a~178 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aba6416554ebe55d9ba401ce8f69c5191ce327ae;p=oweals%2Fcde.git dtcm: Coverity 88768, 89297 and 89115 --- diff --git a/cde/programs/dtcm/dtcm/RFCMIME.c b/cde/programs/dtcm/dtcm/RFCMIME.c index efdc8e29..f5fb02f5 100644 --- a/cde/programs/dtcm/dtcm/RFCMIME.c +++ b/cde/programs/dtcm/dtcm/RFCMIME.c @@ -1514,6 +1514,8 @@ rfc1522cpy(char * buf, const char * value) */ char *_tmp1_; char *_tmp2_; + free(ret_locale); + free(ret_lang); ret_locale = ret_lang = _tmp1_ = NULL; DtXlateOpToStdLocale( DtLCX_OPER_INTERCHANGE_CODESET, ret_codeset, @@ -1577,5 +1579,9 @@ rfc1522cpy(char * buf, const char * value) } } + free(ret_codeset); + free(ret_locale); + free(ret_lang); + crlf(buf); }