cpu-sched: Fix memory leak when loading the cpu affinity config 17/288417/1
authorUnsung Lee <unsung.lee@samsung.com>
Thu, 16 Feb 2023 06:15:18 +0000 (15:15 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Thu, 16 Feb 2023 08:45:03 +0000 (17:45 +0900)
commitf1c027a6257c3c44e94bf61dad60b363a49c33fb
treea7ec7a80008393add2b95d85d9e4de26a7404e5d
parent21539f524ea116d6a4c313443958c707db0f3b0e
cpu-sched: Fix memory leak when loading the cpu affinity config

'name' value will not be freed when 'name' string is different from
'ForegroundApps' (return without free issue)

Change-Id: I5a2ef92944f16f518e40acb9d43285d9df3db1c6
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-optimizer/cpu/cpu-sched.c