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

Signed-off-by: Jan Friesse <[email protected]>
---
 exec/objdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/exec/objdb.c b/exec/objdb.c
index 884263b..5553263 100644
--- a/exec/objdb.c
+++ b/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;
-- 
1.6.2.5

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to