projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d520a7
)
系统:优化CustomEventPublish存在的内存问题
1524/1
1524/head
author
Caisking
<3449750381@qq.com>
Tue, 17 Dec 2024 03:45:18 +0000
(11:45 +0800)
committer
Caisking
<3449750381@qq.com>
Tue, 17 Dec 2024 03:45:18 +0000
(11:45 +0800)
code/sdk/drivers/peripheral/utilscpp/custom_utilscpp.cpp
patch
|
blob
|
history
diff --git
a/code/sdk/drivers/peripheral/utilscpp/custom_utilscpp.cpp
b/code/sdk/drivers/peripheral/utilscpp/custom_utilscpp.cpp
index
60ef7b4
..
122c328
100644
(file)
--- a/
code/sdk/drivers/peripheral/utilscpp/custom_utilscpp.cpp
+++ b/
code/sdk/drivers/peripheral/utilscpp/custom_utilscpp.cpp
@@
-301,8
+301,8
@@
void CustomEventPublish(uint16_t topic, uint8_t *data, uint32_t size) {
broadcastApi->Release((IUnknown *)broadcastApi);
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "ChargerEventPublish end!!");
- // 释放内存
- free(publishData);
+ //
//
释放内存
+
//
free(publishData);
return;
}