From 0cbfc6f8018bdf4071f276dbd344262b572344b5 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 7 May 2005 07:38:04 +0000 Subject: [PATCH] plug a leak --- libs/gib/gib_object.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/gib/gib_object.c b/libs/gib/gib_object.c index a6203c7ae..8d2ec3cc4 100644 --- a/libs/gib/gib_object.c +++ b/libs/gib/gib_object.c @@ -141,12 +141,12 @@ GIB_Method_Build_Hash (gib_class_t *class, hashtab_t *inherited, } if (inherited) { - void **list; + void **list, **l; - for (list = Hash_GetList (inherited); *list; list++) - if (!Hash_Find (new, GIB_Method_Get_Key (*list, - NULL))) - Hash_Add (new, *list); + for (l = list = Hash_GetList (inherited); *l; l++) + if (!Hash_Find (new, GIB_Method_Get_Key (*l, NULL))) + Hash_Add (new, *l); + free (list); } return new;