Merge pull request #809 from htacg/issue-791

Pr #809 - free some -xml-help allocations in tidy.c - closes #791
This commit is contained in:
Geoff McLane 2019-06-07 20:31:47 +02:00 committed by GitHub
commit dcf56a18ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1740,6 +1740,10 @@ static void printXMLCrossRefEqConsole(TidyDoc tdoc, /**< The Tidy document. */
free((tmbstr)localHit.name3);
free(localName);
}
if ( localHit.eqconfig ) /* Is. #791 */
{
free((tmbstr)localHit.eqconfig);
}
}
else
@ -1886,6 +1890,7 @@ static void xml_help( void )
if (localPos.name1) free((tmbstr)localPos.name1);
if (localPos.name2) free((tmbstr)localPos.name2);
if (localPos.name3) free((tmbstr)localPos.name3);
if (localPos.eqconfig) free((tmbstr)localPos.eqconfig); /* Is. #791 */
}
printf( "</cmdline>\n" );