forked from enlightenment/efl
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
This commit is contained in:
parent
bf26ce4b12
commit
62bea1701c
|
@ -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_append(buf, " return efl_class_functions_set(klass, opsp, ropsp);\n");
|
||||||
|
|
||||||
eina_strbuf_free(ops);
|
eina_strbuf_free(ops);
|
||||||
|
eina_strbuf_free(refls);
|
||||||
|
|
||||||
eina_strbuf_append(buf, "}\n\n");
|
eina_strbuf_append(buf, "}\n\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue