projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ded2f26
)
kdbus: fixed memory leak in process_connection_info_cmd()
84/196684/1
accepted/tizen/unified/20190105.054101
submit/tizen/20190104.021452
author
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Thu, 3 Jan 2019 12:31:45 +0000
(21:31 +0900)
committer
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Thu, 3 Jan 2019 12:32:11 +0000
(21:32 +0900)
Change-Id: I67e577761e7596eac400bc8c35386f4c0cbf840a
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
dbus/kdbus-common.c
patch
|
blob
|
history
diff --git
a/dbus/kdbus-common.c
b/dbus/kdbus-common.c
index e1550377a2a9e361bd58a3ae3050533794078695..008f701977ed2250c7d8c1bdcb118539e77bd2ff 100755
(executable)
--- a/
dbus/kdbus-common.c
+++ b/
dbus/kdbus-common.c
@@
-1022,6
+1022,7
@@
process_connection_info_cmd (kdbus_t *kdbus,
if (ret < 0)
{
pInfo->uniqueId = 0;
+ dbus_free(cmd);
return errno;
}
@@
-1029,8
+1030,10
@@
process_connection_info_cmd (kdbus_t *kdbus,
ret = decode_connection_info (kdbus_info,
pInfo,
get_sec_label);
- if (ret != 0)
+ if (ret != 0) {
+ dbus_free(cmd);
return ret;
+ }
ret = free_by_offset (kdbus, cmd->offset);
if (ret != 0)