]> granicus.if.org Git - libexpat/commitdiff
Avoid freeing a NULL pointer.
authorJames Clark <jjc@jclark.com>
Thu, 18 May 2000 11:38:56 +0000 (11:38 +0000)
committerJames Clark <jjc@jclark.com>
Thu, 18 May 2000 11:38:56 +0000 (11:38 +0000)
expat/xmlparse/xmlparse.c

index ad53c4304a73202e21b158d71272ed9ef6312182..079882d6e93251dd1822d34b1495155bc18564a7 100755 (executable)
@@ -3720,7 +3720,8 @@ void hashTableDestroy(HASH_TABLE *table)
     if (p)
       free(p);
   }
-  free(table->v);
+  if (table->v)
+    free(table->v);
 }
 
 static