eina_test_ustr: Fix resource leak

Summary:
Coverity reports that we leak 'buf' here so add a call to free

Fixes CID1400784

@fix
Depends on D8781

Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8782
This commit is contained in:
Christopher Michael 2019-05-02 13:48:27 +02:00 committed by Xavi Artigas
parent ab2746571c
commit c380c496dc
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ EFL_START_TEST(eina_unicode_strdup_test)
buf = eina_unicode_strdup(EMPTYSTR);
fail_if(!buf);
fail_if(buf[0] != 0);
free(buf);
}
EFL_END_TEST