forked from enlightenment/efl
eina_test_file: Fix resource leak
Summary: Coverity reports that we leak 'path' here, so free the returned string Fixes CID1400926 @fix Depends on D8771 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8772
This commit is contained in:
parent
b563fed2e4
commit
f537164024
|
@ -532,8 +532,8 @@ EFL_START_TEST(eina_test_file_path)
|
|||
{
|
||||
path = eina_file_path_sanitize(sanitize[i].test);
|
||||
fail_if(strcmp(path, sanitize[i].result));
|
||||
free(path);
|
||||
}
|
||||
|
||||
}
|
||||
EFL_END_TEST
|
||||
|
||||
|
|
Loading…
Reference in New Issue