Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 1219ad9

Browse files
author
livecodeali
committed
[ CID 16845 ] Fix resource leak
1 parent 6ab9049 commit 1219ad9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

revxml/src/revxml.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,14 +2177,14 @@ void XML_FindElementByAttributeValue(char *args[], int nargs, char **retstring,
21772177
t_comparison_result = util_strncmp(attvalue, tvalue, strlen(tvalue));
21782178
else
21792179
t_comparison_result = util_strnicmp(attvalue, tvalue, strlen(tvalue));
2180-
2181-
if (t_comparison_result == 0)
2182-
{
2183-
result = curelement -> GetPath();
2184-
break;
2185-
}
21862180

21872181
delete tvalue;
2182+
2183+
if (t_comparison_result == 0)
2184+
{
2185+
result = curelement -> GetPath();
2186+
break;
2187+
}
21882188
}
21892189

21902190
}

0 commit comments

Comments
 (0)