Fix coverity issue - remove memory leak 89/224589/1 accepted/tizen/5.5/unified/20200217.054219 submit/tizen_5.5/20200214.104438
authorYunmi Ha <yunmi.ha@samsung.com>
Tue, 11 Feb 2020 08:31:53 +0000 (17:31 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 12 Feb 2020 01:00:15 +0000 (01:00 +0000)
Change-Id: I87b38d118247283eefb42a8e14df38c3b09143d7
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
(cherry picked from commit c778143c3b214895ec734b9fafdc3a8468a5f396)

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;
        }