proc-usage-stats: Free builder before exiting function by error 09/318309/1 accepted/tizen/9.0/unified/20250116.154306
authorUnsung Lee <unsung.lee@samsung.com>
Mon, 13 Jan 2025 07:26:29 +0000 (16:26 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Wed, 15 Jan 2025 08:57:11 +0000 (17:57 +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

index 8bdcd7a691b3b2facfc029c2271325e2e101b0b8..a73cb9a1d7badac39b2bdb0291dd1230d61826ad 100644 (file)
@@ -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: