forked from enlightenment/efl
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:
parent
ab2746571c
commit
c380c496dc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue