projects
/
platform
/
kernel
/
linux-tizen-modules-source.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5715141
)
tests: kdbus: fix memory leak
42/269842/4
author
Łukasz Stelmach
<l.stelmach@samsung.com>
Wed, 19 Jan 2022 19:02:16 +0000
(20:02 +0100)
committer
Łukasz Stelmach
<l.stelmach@samsung.com>
Fri, 21 Jan 2022 13:12:05 +0000
(14:12 +0100)
Change-Id: I90606b1364825ed163f63d7597444aa6e7a8a6cd
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
tests/kdbus/kdbus-test.c
patch
|
blob
|
history
diff --git
a/tests/kdbus/kdbus-test.c
b/tests/kdbus/kdbus-test.c
index
f8f2fcc
..
5cd9301
100644
(file)
--- a/
tests/kdbus/kdbus-test.c
+++ b/
tests/kdbus/kdbus-test.c
@@
-426,8
+426,10
@@
static wur int test_run(const struct kdbus_test *t,
struct kdbus_test_env env = {};
ret = test_prepare_env(t, kdbus_args, &env);
- if (ret != TEST_OK)
+ if (ret != TEST_OK) {
+ test_unprepare_env(&env);
return ret;
+ }
if (wait > 0) {
print("Sleeping %d seconds before running test ...\n", wait);