Skip to content

Commit

Permalink
Fix resource leak in iconv_helper function.
Browse files Browse the repository at this point in the history
Coverity #1484881.
  • Loading branch information
linuxdude42 committed May 16, 2021
1 parent e52e3ff commit a7a40e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/mpeg/dvbdescriptors.cpp
Expand Up @@ -111,6 +111,8 @@ static QString iconv_helper(int which, char *buf, size_t length)
QString result =
QString::fromUtf16(reinterpret_cast<char16_t*>(outbytes.data()),
(outmaxlen-outremain)/2);

iconv_close(conv);
return result;
}

Expand Down

0 comments on commit a7a40e9

Please sign in to comment.