From 1d74ed8f27f44f58eed3406b8eafd69c24cc9d8a Mon Sep 17 00:00:00 2001 From: "Geoff R. McLane" Date: Wed, 9 Jan 2019 20:55:33 +0100 Subject: [PATCH] Is. #791 - free some allocations --- console/tidy.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/console/tidy.c b/console/tidy.c index a7880f6..c988927 100644 --- a/console/tidy.c +++ b/console/tidy.c @@ -1741,6 +1741,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 @@ -1887,6 +1891,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( "\n" );