Skip to content

Commit 1161515

Browse files
JizhouLiaoarco
authored andcommitted
Memory leak fix in NFA_SetRfDiscoveryDuration()
Test: compile Change-Id: Id896d79e09def5c978d1a95548a1fa231510f708
1 parent 20d72b4 commit 1161515

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nfa/dm/nfa_dm_api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,8 @@ tNFA_STATUS NFA_SetRfDiscoveryDuration(uint16_t discovery_period_ms) {
738738
NFA_TRACE_API0("NFA_SetRfDiscoveryDuration ()");
739739

740740
/* Post the API message */
741-
p_msg = (tNFA_DM_API_SET_RF_DISC_DUR*)GKI_getbuf(sizeof(NFC_HDR));
741+
p_msg = (tNFA_DM_API_SET_RF_DISC_DUR*)GKI_getbuf(
742+
sizeof(tNFA_DM_API_SET_RF_DISC_DUR));
742743
if (p_msg != NULL) {
743744
p_msg->hdr.event = NFA_DM_API_SET_RF_DISC_DURATION_EVT;
744745

0 commit comments

Comments
 (0)