projects
/
platform
/
core
/
system
/
storaged.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78af0c2
)
common: Increase refcount for DBusMessage
93/123793/1
author
pr.jung
<pr.jung@samsung.com>
Fri, 7 Apr 2017 04:33:22 +0000
(13:33 +0900)
committer
pr.jung
<pr.jung@samsung.com>
Fri, 7 Apr 2017 04:47:42 +0000
(13:47 +0900)
- DBusMessage should not be freed when result is null
- Refcount is decreased on reply_dbus_method_result
Change-Id: I712790950f42514377e9d39deecb0388e784b0c7
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/shared/dbus.c
patch
|
blob
|
history
diff --git
a/src/shared/dbus.c
b/src/shared/dbus.c
index
15b30ed
..
04b5cd4
100644
(file)
--- a/
src/shared/dbus.c
+++ b/
src/shared/dbus.c
@@
-243,7
+243,7
@@
static DBusHandlerResult method_call_handler(DBusConnection *connection,
}
reply->handle = mh->handle;
- reply->msg =
msg
;
+ reply->msg =
dbus_message_ref(msg)
;
result = methods[i].func(reply, msg);
if (!result)
_E("result == NULL");