# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1200052669 -3600
# Node ID 5278b5fa14a754ea8c6cfdd7870cdb7fc6c62fe7
# Parent 393ba1344f5be2ea42b21adea0d377de440516dc
Make inst_list_free() handle NULL pointers
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r 393ba1344f5b -r 5278b5fa14a7 inst_list.c
--- a/inst_list.c Fri Jan 11 10:33:08 2008 +0100
+++ b/inst_list.c Fri Jan 11 12:57:49 2008 +0100
@@ -50,6 +50,9 @@ void inst_list_init(struct inst_list *li
void inst_list_free(struct inst_list *list)
{
+ if (!list)
+ return;
+
free(list->list);
inst_list_init(list);
}