util: gdbus-util: Fix memory leak issue 04/270704/2
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 8 Feb 2022 03:08:46 +0000 (12:08 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 8 Feb 2022 05:36:13 +0000 (05:36 +0000)
Change-Id: I3df1d2edbeec17f14cf87ee55065922e0362ba5f
Reported-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Suggested-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/util/gdbus-util.c

index 53d6da9..b4fcafe 100644 (file)
@@ -157,6 +157,7 @@ int pass_gdbus_send_broadcast_signal(passdbus idx, char *path,
                                G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, &err);
        if (!ret) {
                _E("failed to broadcast [%s]", method);
+               g_error_free(err);
                g_object_unref(message);
                return -ECOMM;
        }