Don't allocate dynamic memory for app/res usage 65/232265/1
authorKichan Kwon <k_c.kwon@samsung.com>
Wed, 29 Apr 2020 09:54:20 +0000 (18:54 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Wed, 29 Apr 2020 09:54:20 +0000 (18:54 +0900)
commit660861076184a6a3646c3e96ff37974e92296ae1
tree0213d9c7f1bb4be0a06cd71fccadecb3f50531b5
parentf592cf82a585c450de42f4bf8b469559979994b4
Don't allocate dynamic memory for app/res usage

- We need to free these variables below
  - app_usage->AppId
  - res_usage->ResourceId
- But, if they are freed on usage_free function,
  crash occurs because some code try to free
  without dynamic memory allocation
- Not to use usage_free function, declare without
  dynamic memory allocation and don't free it

Change-Id: I777f8408dcbc64da173f3edcf20d30a9aa932ad0
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/bm_power_engine.c
src/bm_util.c