cpu-sched: Fix memory leak when loading the cpu affinity config 99/288399/2
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 07:13:19 +0000 (16:13 +0900)
commitfc3ade45780746ba74d968c410f60961f135903e
tree6b85256e30b26fabe12d097f83c9c2e09e88f2ea
parent0c8248c1d99c57a8d173604dc5f56c4bd82f2e60
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