projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
552b438
)
eina_test_file: Fix resource leak
author
Christopher Michael
<cp.michael@samsung.com>
Thu, 2 May 2019 11:47:28 +0000
(13:47 +0200)
committer
Hermet Park
<hermetpark@gmail.com>
Wed, 8 May 2019 04:30:08 +0000
(13:30 +0900)
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
src/tests/eina/eina_test_file.c
patch
|
blob
|
history
diff --git
a/src/tests/eina/eina_test_file.c
b/src/tests/eina/eina_test_file.c
index
1fc7b23
..
3d75f5e
100644
(file)
--- a/
src/tests/eina/eina_test_file.c
+++ b/
src/tests/eina/eina_test_file.c
@@
-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