projects
/
platform
/
core
/
system
/
activationd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef419e7
)
libactd: add g_variant_unref code for replying msg
17/230317/1
author
Yunmi Ha
<yunmi.ha@samsung.com>
Thu, 9 Apr 2020 08:26:14 +0000
(17:26 +0900)
committer
Yunmi Ha
<yunmi.ha@samsung.com>
Thu, 9 Apr 2020 08:26:14 +0000
(17:26 +0900)
Change-Id: I97afe72ad3be3c00d3c00df05554a78340d1622f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
src/libactd/unit_control.c
patch
|
blob
|
history
diff --git
a/src/libactd/unit_control.c
b/src/libactd/unit_control.c
index 576e1801c466ce96452b3da92e163c1e38738a33..fbc5a35d4794da7cb469f0922fc7ea4f544504a3 100644
(file)
--- a/
src/libactd/unit_control.c
+++ b/
src/libactd/unit_control.c
@@
-135,6
+135,8
@@
static int call_uc(GBusType bus_type, const char *method, const char *unit, int
&err);
if (!msg)
goto out;
+
+ g_variant_unref(msg);
} else {
/* we assume that activationd runs on system bus and can be used as a proxy */
char *result = NULL;
@@
-156,6
+158,7
@@
static int call_uc(GBusType bus_type, const char *method, const char *unit, int
g_variant_get(msg, "(s)", &result);
bool is_ok = g_strcmp0(result, "ok") == 0;
g_free(result);
+ g_variant_unref(msg);
if (!is_ok)
goto out;