projects
/
platform
/
core
/
system
/
resourced.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d943a01
)
proc-usage-stats: Free builder before exiting function by error
02/318102/1
author
Unsung Lee
<unsung.lee@samsung.com>
Mon, 13 Jan 2025 07:26:29 +0000
(16:26 +0900)
committer
Unsung Lee
<unsung.lee@samsung.com>
Mon, 13 Jan 2025 07:26:31 +0000
(16:26 +0900)
Free a builder structure before exiting the function by error situation.
Change-Id: I49e66a776db1ca600c270552b46cd15385ed77f2
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/process/proc-usage-stats.c
patch
|
blob
|
history
diff --git
a/src/process/proc-usage-stats.c
b/src/process/proc-usage-stats.c
index 8bdcd7a691b3b2facfc029c2271325e2e101b0b8..a73cb9a1d7badac39b2bdb0291dd1230d61826ad 100644
(file)
--- a/
src/process/proc-usage-stats.c
+++ b/
src/process/proc-usage-stats.c
@@
-127,6
+127,8
@@
error:
G_DBUS_ERROR_IO_ERROR, "Failed to get usage information");
proc_free_runtime_info_task(rt_task);
+ g_variant_builder_clear(&builder);
+
return false;
send_message: