Skip to content

Commit

Permalink
coverity: Fix resource leak 1460438 in xmltvparser.cpp.
Browse files Browse the repository at this point in the history
Need to delete "pginfo" before exiting the function.
  • Loading branch information
linuxdude42 committed Oct 28, 2021
1 parent 0dac914 commit 9cc4e0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/programs/mythfilldatabase/xmltvparser.cpp
Expand Up @@ -365,7 +365,10 @@ bool XMLTVParser::parseFile(
do
{
if (!readNextWithErrorCheck(xml))
{
delete pginfo;
return false;
}
if (xml.name() == QString("title"))
{
QString text2=xml.readElementText(QXmlStreamReader::SkipChildElements);
Expand Down

0 comments on commit 9cc4e0f

Please sign in to comment.