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

Commit 2a9d800

Browse files
committed
revxml: Use free() to destroy attribute values
Attribute value buffers are allocated with `strdup()`, and should therefore be destroyed using `free()`, not `delete`.
1 parent 5183091 commit 2a9d800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

revxml/src/revxml.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2182,7 +2182,7 @@ void XML_FindElementByAttributeValue(char *args[], int nargs, char **retstring,
21822182
else
21832183
t_comparison_result = util_strnicmp(attvalue, tvalue, strlen(tvalue));
21842184

2185-
delete tvalue;
2185+
free(tvalue);
21862186

21872187
if (t_comparison_result == 0)
21882188
{

0 commit comments

Comments
 (0)