Skip to content

Commit dcf56a1

Browse files
authored
Merge pull request #809 from htacg/issue-791
Pr #809 - free some -xml-help allocations in tidy.c - closes #791
2 parents d7b58cf + 1d74ed8 commit dcf56a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

console/tidy.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,6 +1740,10 @@ static void printXMLCrossRefEqConsole(TidyDoc tdoc, /**< The Tidy document. */
17401740
free((tmbstr)localHit.name3);
17411741
free(localName);
17421742
}
1743+
if ( localHit.eqconfig ) /* Is. #791 */
1744+
{
1745+
free((tmbstr)localHit.eqconfig);
1746+
}
17431747

17441748
}
17451749
else
@@ -1886,6 +1890,7 @@ static void xml_help( void )
18861890
if (localPos.name1) free((tmbstr)localPos.name1);
18871891
if (localPos.name2) free((tmbstr)localPos.name2);
18881892
if (localPos.name3) free((tmbstr)localPos.name3);
1893+
if (localPos.eqconfig) free((tmbstr)localPos.eqconfig); /* Is. #791 */
18891894
}
18901895

18911896
printf( "</cmdline>\n" );

0 commit comments

Comments
 (0)