Signed-off-by: Angus Salkeld <[email protected]>
---
 exec/objdb.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/exec/objdb.c b/exec/objdb.c
index ecb8547..73fc8c7 100644
--- a/exec/objdb.c
+++ b/exec/objdb.c
@@ -672,6 +672,7 @@ static int _clear_object(struct object_instance *instance)
        int res;
        struct object_instance *find_instance = NULL;
        struct object_key *object_key = NULL;
+       struct object_tracker *tracker_pt = NULL;
 
        for (list = instance->key_head.next;
             list != &instance->key_head; ) {
@@ -687,6 +688,19 @@ static int _clear_object(struct object_instance *instance)
                free(object_key);
        }
 
+       for (list = instance->track_head.next;
+               list != &instance->track_head;) {
+
+               tracker_pt = list_entry (list,
+                       struct object_tracker, object_list);
+
+               list = list->next;
+
+               list_del(&tracker_pt->tracker_list);
+               list_del(&tracker_pt->object_list);
+               free(tracker_pt);
+       }
+
        for (list = instance->child_head.next;
             list != &instance->child_head; ) {
 
-- 
1.7.2.2

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

Reply via email to