aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 14:11:20 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-05-02 14:11:20 +0200
commit1e0a206f6ec4e1031f85c6a32859f3840976e840 (patch)
tree319f1bd85868e87046830ef9dcf8807f455557a2
parenteina_test_tiler: Fix resource leak (diff)
downloadefl-1e0a206f6ec4e1031f85c6a32859f3840976e840.tar.gz
eo_test_manager_xattr: Fix resource leak
Summary: Coverity reports that we leak the eina_binbuf returned from eina_value_to_binbuf function, so add a call to eina_binbuf_free. Fixes CID1400953 @fix Depends on https://phab.enlightenment.org/D8762 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8769
-rw-r--r--src/tests/eio/eio_test_manager_xattr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/eio/eio_test_manager_xattr.c b/src/tests/eio/eio_test_manager_xattr.c
index e0aae0d938..b62f426200 100644
--- a/src/tests/eio/eio_test_manager_xattr.c
+++ b/src/tests/eio/eio_test_manager_xattr.c
@@ -80,11 +80,13 @@ _future_done_cb(void *data EINA_UNUSED,
fail_if(!buf);
fail_if(strcmp((const char*) eina_binbuf_string_get(buf),
attr_data[i]) != 0);
+ eina_binbuf_free(buf);
}
fail_if((int) i != total_attributes);
ecore_main_loop_quit();
+
return array;
}