Hi

Fabio: this should fix your mem leak (can you test please?).

The key object was not getting free'ed in _clear_object().

-Angus

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

diff --git a/exec/objdb.c b/exec/objdb.c
index 588f4c0..91dcebe 100644
--- a/exec/objdb.c
+++ b/exec/objdb.c
@@ -683,6 +683,7 @@ static int _clear_object(struct object_instance *instance)
                list_del(&object_key->list);
                free(object_key->key_name);
                free(object_key->value);
+               free(object_key);
        }
 
        for (list = instance->child_head.next;
-- 
1.6.3.4

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

Reply via email to