Is. #791 - free some allocations

This commit is contained in:
Geoff R. McLane 2019-01-09 20:55:33 +01:00
parent 9b7205124b
commit 1d74ed8f27

View file

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