Skip to content

Commit

Permalink
Fix minor memory leak on error in mythsettings.cpp
Browse files Browse the repository at this point in the history
Coverity ID 746836
  • Loading branch information
stuartm committed Dec 5, 2012
1 parent 1241485 commit d9162c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/programs/mythbackend/mythsettings.cpp
Expand Up @@ -505,7 +505,10 @@ bool parse_dom(MythSettingList &settings, const QDomElement &element,
if ((e.hasChildNodes()) &&
(!parse_dom(g->settings, e, filename, group, tmpIncludeAllChildren,
tmpFoundGroup)))
{
delete g;
return false;
}

if (tmpFoundGroup || tmpIncludeAllChildren)
{
Expand Down

0 comments on commit d9162c5

Please sign in to comment.