summaryrefslogtreecommitdiff
path: root/src/tests/eio
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 /src/tests/eio
parentea56b2aa3318299963c6b40e303daac306b154de (diff)
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 D8762 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8769
Diffstat (limited to 'src/tests/eio')
-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,
80 fail_if(!buf); 80 fail_if(!buf);
81 fail_if(strcmp((const char*) eina_binbuf_string_get(buf), 81 fail_if(strcmp((const char*) eina_binbuf_string_get(buf),
82 attr_data[i]) != 0); 82 attr_data[i]) != 0);
83 eina_binbuf_free(buf);
83 } 84 }
84 85
85 fail_if((int) i != total_attributes); 86 fail_if((int) i != total_attributes);
86 87
87 ecore_main_loop_quit(); 88 ecore_main_loop_quit();
89
88 return array; 90 return array;
89} 91}
90 92