aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_color_class.c
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2015-04-16 16:05:02 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2015-04-16 16:05:02 +0200
commit64f3a97cb65e96f60ab91e8df326dd3c58d997a4 (patch)
tree2a30ed9a671192ab77604faa33873df684dfb1c4 /legacy/elementary/src/lib/elm_color_class.c
parentmailmap: update q66 (diff)
downloadefl-64f3a97cb65e96f60ab91e8df326dd3c58d997a4.tar.gz
elm_color_class: Avoid resource leak
We would leak ecc here when we return so we need to free it before. CID: 1294249
Diffstat (limited to 'legacy/elementary/src/lib/elm_color_class.c')
-rw-r--r--legacy/elementary/src/lib/elm_color_class.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_color_class.c b/legacy/elementary/src/lib/elm_color_class.c
index d26a5308b7..0014d7ec27 100644
--- a/legacy/elementary/src/lib/elm_color_class.c
+++ b/legacy/elementary/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