fix memory leak 25/221925/3
authorsanghyeok.oh <sanghyeok.oh@samsung.com>
Wed, 8 Jan 2020 08:40:46 +0000 (17:40 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 20 Jan 2020 04:31:45 +0000 (04:31 +0000)
Change-Id: I2cb00ff25ad73c5f557bea591a69888cf7ae4031
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
src/power.c

index e841271..34f0708 100644 (file)
@@ -135,7 +135,7 @@ static void notice_lock_expired_done(void *data, GVariant *result, GError *err)
        if (!result)
                return;
 
-       g_variant_get(result, "(si)", &id, &val);
+       g_variant_get(result, "(&si)", &id, &val);
 
        elem = NULL;
        len = strlen(id) + 1;