Fix coverity issue - remove memory leak 31/224531/1 accepted/tizen/unified/20200216.215215 submit/tizen/20200214.104642
authorYunmi Ha <yunmi.ha@samsung.com>
Tue, 11 Feb 2020 08:31:53 +0000 (17:31 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Tue, 11 Feb 2020 08:31:53 +0000 (17:31 +0900)
Change-Id: I87b38d118247283eefb42a8e14df38c3b09143d7
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
src/power.c

index 34f0708..f4c6fe7 100644 (file)
@@ -197,6 +197,7 @@ static int notice_power_lock_expired(void)
                        NULL);
        if (ret < 0) {
                _E("Failed to notice power lock expired (%d)", ret);
+               free(req_id);
                return ret;
        }