summaryrefslogtreecommitdiff
path: root/src/bin
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 /src/bin
parentbf26ce4b12a1fdd6e8dbda1db625789a5456bd23 (diff)
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
Diffstat (limited to 'src/bin')
-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 923c7ba..265dc75 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)
1028 eina_strbuf_append(buf, " return efl_class_functions_set(klass, opsp, ropsp);\n"); 1028 eina_strbuf_append(buf, " return efl_class_functions_set(klass, opsp, ropsp);\n");
1029 1029
1030 eina_strbuf_free(ops); 1030 eina_strbuf_free(ops);
1031 eina_strbuf_free(refls);
1031 1032
1032 eina_strbuf_append(buf, "}\n\n"); 1033 eina_strbuf_append(buf, "}\n\n");
1033 1034