emile_test_base64: Fix resource leak

Summary:
Coverity reports that we leak the storage of variable 'decoded' here,
so lets add a call to eina_binbuf_free

Fixes CID1400868

@fix
Depends on D8774

Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8775
This commit is contained in:
Christopher Michael 2019-05-02 13:47:45 +02:00 committed by Xavi Artigas
parent 06263f319f
commit aef0da9dd2
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ EFL_START_TEST(emile_test_base64_url)
decoded = emile_base64url_decode(str);
eina_strbuf_free(str);
fail_if(memcmp(eina_binbuf_string_get(decoded), "Man", 3));
eina_binbuf_free(decoded);
}
EFL_END_TEST