Hi

Couldn't close the register leak easily, but could close this one ;)

- Lauri
>From be5e174fdb0fb35dabb8e748e98314f9f71fa08b Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Mon, 7 May 2012 19:07:38 +0300
Subject: [PATCH] plugin: close memory leak (~5kb)


Signed-off-by: Lauri Kasanen <[email protected]>
---
 src/mk_plugin.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mk_plugin.c b/src/mk_plugin.c
index 7ce0440..7f720ce 100644
--- a/src/mk_plugin.c
+++ b/src/mk_plugin.c
@@ -508,6 +508,7 @@ void mk_plugin_exit_all()
         node = mk_list_entry(head, struct plugin, _head);
         mk_list_del(&node->_head);
         mk_mem_free(node->path);
+        dlclose(node->handler);
         mk_mem_free(node);
     }
     mk_mem_free(api);
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to