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:
3e1dc8c
)
eina_test_ustr: Fix resource leak
author
Christopher Michael
<cp.michael@samsung.com>
Thu, 2 May 2019 11:48:27 +0000
(13:48 +0200)
committer
Hermet Park
<hermetpark@gmail.com>
Wed, 8 May 2019 04:30:08 +0000
(13:30 +0900)
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
src/tests/eina/eina_test_ustr.c
patch
|
blob
|
history
diff --git
a/src/tests/eina/eina_test_ustr.c
b/src/tests/eina/eina_test_ustr.c
index
6c8edcf
..
308059b
100644
(file)
--- a/
src/tests/eina/eina_test_ustr.c
+++ b/
src/tests/eina/eina_test_ustr.c
@@
-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