From: sanghyeok.oh Date: Wed, 8 Jan 2020 08:40:46 +0000 (+0900) Subject: fix memory leak X-Git-Tag: accepted/tizen/unified/20200129.022606~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F221925%2F3;p=platform%2Fcore%2Fapi%2Fdevice.git fix memory leak Change-Id: I2cb00ff25ad73c5f557bea591a69888cf7ae4031 Signed-off-by: sanghyeok.oh --- diff --git a/src/power.c b/src/power.c index e841271..34f0708 100644 --- a/src/power.c +++ b/src/power.c @@ -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;