stefan pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=6258b11a5de6e8bdf6131f0d49a69c015ba1b1b4

commit 6258b11a5de6e8bdf6131f0d49a69c015ba1b1b4
Author: Stefan Schmidt <s.schm...@samsung.com>
Date:   Thu Apr 16 16:05:02 2015 +0200

    elm_color_class: Avoid resource leak
    
    We would leak ecc here when we return so we need to free it before.
    
    CID: 1294249
---
 src/lib/elm_color_class.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elm_color_class.c b/src/lib/elm_color_class.c
index d26a530..0014d7e 100644
--- a/src/lib/elm_color_class.c
+++ b/src/lib/elm_color_class.c
@@ -604,6 +604,7 @@ _dbus_send_cc(const Eldbus_Service_Interface *iface 
EINA_UNUSED, const Eldbus_Me
              _colorclass_cc_update(cc, 0);
              _colorclass_cc_update(cc, 1);
              _colorclass_cc_update(cc, 2);
+             free(ecc);
              return eldbus_message_method_return_new(msg);
           }
         else

-- 


Reply via email to