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
This commit is contained in:
Christopher Michael 2019-05-02 14:11:20 +02:00 committed by Xavi Artigas
parent ea56b2aa33
commit 1e0a206f6e
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}