Browse Source

objdb: destroy all handles in _clear_object

Patch replaces free for object_instance with handle_destroy to remove
leaks in handles (and also memory leak).

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse 15 years ago
parent
commit
ea18c71936
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exec/objdb.c

+ 1 - 1
exec/objdb.c

@@ -714,7 +714,7 @@ static int _clear_object(struct object_instance *instance)
 
 		list_del(&find_instance->child_list);
 		free(find_instance->object_name);
-		free(find_instance);
+		hdb_handle_destroy (&object_instance_database, find_instance->object_handle);
 	}
 
 	return 0;