From dff95aed65e75b4f8d377e4d4f49106ebf0423d5 Mon Sep 17 00:00:00 2001 From: Tian Hao Date: Thu, 14 Sep 2017 18:28:36 +0800 Subject: [PATCH] component/bt : fix a malloc bzero of blufi --- components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c b/components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c index 14cad2ecf..8ffafd7e8 100644 --- a/components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c +++ b/components/bt/bluedroid/btc/profile/esp/blufi/blufi_prf.c @@ -808,7 +808,7 @@ void btc_blufi_call_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src) return; } - dst->wifi_conn_report.extra_info = osi_malloc(sizeof(esp_blufi_extra_info_t)); + dst->wifi_conn_report.extra_info = osi_calloc(sizeof(esp_blufi_extra_info_t)); if (dst->wifi_conn_report.extra_info == NULL) { return; }