From: James Clark Date: Thu, 18 May 2000 11:38:56 +0000 (+0000) Subject: Avoid freeing a NULL pointer. X-Git-Tag: jclark-orig~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86646a28cbfcda11a1c2f45d09f7d92d87d67a83;p=libexpat Avoid freeing a NULL pointer. --- diff --git a/expat/xmlparse/xmlparse.c b/expat/xmlparse/xmlparse.c index ad53c430..079882d6 100755 --- a/expat/xmlparse/xmlparse.c +++ b/expat/xmlparse/xmlparse.c @@ -3720,7 +3720,8 @@ void hashTableDestroy(HASH_TABLE *table) if (p) free(p); } - free(table->v); + if (table->v) + free(table->v); } static