projects
/
platform
/
core
/
appfw
/
app-installers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
048d90c
)
Fix static analysis issue
01/226001/2
author
Sangyoon Jang
<jeremy.jang@samsung.com>
Wed, 26 Feb 2020 06:13:23 +0000
(15:13 +0900)
committer
Sangyoon Jang
<jeremy.jang@samsung.com>
Wed, 26 Feb 2020 07:03:39 +0000
(07:03 +0000)
Fix resource leak.
Change-Id: I5f3f5cd640e76c11c50310470326dc3f9e069c53
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/unit_tests/common/smoke_utils.cc
patch
|
blob
|
history
diff --git
a/src/unit_tests/common/smoke_utils.cc
b/src/unit_tests/common/smoke_utils.cc
index d01434052f0e41d4b8f014e16c45820e8daed491..7aed360b9a8b4323cf4da6c2572b4c97bb5dcc59 100644
(file)
--- a/
src/unit_tests/common/smoke_utils.cc
+++ b/
src/unit_tests/common/smoke_utils.cc
@@
-1060,6
+1060,7
@@
bool CopySmackTransmute(const boost::filesystem::path& src,
ret = smack_lsetlabel(dst.c_str(), "1", SMACK_LABEL_TRANSMUTE);
else
ret = smack_lsetlabel(dst.c_str(), "0", SMACK_LABEL_TRANSMUTE);
+ free(transmute_label);
if (ret < 0) {
LOG(ERROR) << "set access label to [" << dst << "] fail";
return false;