mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-19 20:23:33 -04:00
IssueNo:#I4UE0X
Description:solve codex Sig:appexecfwk Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangdengjia <wangdengjia@huawei.com> Change-Id: Ifaab9ce469850db7e924993d3a52a00c6d41a1d7 Signed-off-by: wangdengjia <wangdengjia@huawei.com>
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
#define AdapterMalloc(a) malloc(a)
|
||||
#define AdapterFree(a) \
|
||||
do { \
|
||||
if (a != nullptr) { \
|
||||
(void) free((void *)a); \
|
||||
if ((a) != nullptr) { \
|
||||
(void) free((void *)(a)); \
|
||||
a = nullptr; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
Reference in New Issue
Block a user