Use static memory for DB file path 22/295622/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 11 Jul 2023 02:32:03 +0000 (11:32 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Wed, 12 Jul 2023 02:02:11 +0000 (11:02 +0900)
commit07c10ce6b94459a75a54d3464bc1acb4384f4af4
treed7a30df8b92b07ce784c77e5b2ad1e23ee6439be
parentf9ece7be47607b65ec6ee1e4fa3d5d38d084f6a7
Use static memory for DB file path

- Issue:
In some code, g_path and g_backup_path can be deallocated even if it
would be referenced.

- Solution:
g_path and g_backup_path should not be allocated the memory dynamically
because the life cycle of those variables are the same as the program.
So this patch changes the variables to use static memory. Through this
patch, unintended memory deallocation will be removed.

Change-Id: Idc64bc76e4cfc884770d83576923d2670e61c364
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/vc_cmd_db.c