summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-03-12 11:31:51 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-03-12 11:31:51 -0400
commit62bea1701c31ff793452ec69b8750c58d23d3b01 (patch)
tree1c79acac92b431e84dc00f1e6279ffc393d267c4
parentbf26ce4b12a1fdd6e8dbda1db625789a5456bd23 (diff)
downloadefl-62bea1701c31ff793452ec69b8750c58d23d3b01.tar.gz
eolian: Fix resource leak
Summary: Small patch to fix a resource leak detected by Coverity. Coverity reports that 'refls' going out of scope leaks the storage it points to, so let's free it before we leave the function. Fixes Coverity CID1399099 Depends on D8309 Reviewers: raster, cedric, q66, zmike, bu5hm4n, stefan Reviewed By: q66 Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8310
-rw-r--r--src/bin/eolian/sources.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/eolian/sources.c b/src/bin/eolian/sources.c
index 923c7ba14f..265dc75d92 100644
--- a/src/bin/eolian/sources.c
+++ b/src/bin/eolian/sources.c
@@ -1028,6 +1028,7 @@ _gen_initializer(const Eolian_Class *cl, Eina_Strbuf *buf, Eina_Hash *refh)
eina_strbuf_append(buf, " return efl_class_functions_set(klass, opsp, ropsp);\n");
eina_strbuf_free(ops);
+ eina_strbuf_free(refls);
eina_strbuf_append(buf, "}\n\n");