Skip to content

Commit 6bc9e00

Browse files
author
Juha Heiskanen
authored
Merge pull request ARMmbed#1783 from ARMmbed/mac_fix
Fixed possible memory leak at mac pd_sap_ind()
2 parents 9e31d11 + 8b1577e commit 6bc9e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/MAC/IEEE802_15_4/mac_pd_sap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ int8_t mac_pd_sap_data_cb(void *identifier, arm_phy_sap_msg_t *message)
700700
}
701701
//Do not accept commend frame with length 0
702702
if (fcf_read.frametype == FC_CMD_FRAME && length == 0) {
703-
return -1;
703+
goto ERROR_HANDLER;
704704
}
705705

706706
//Parse IE Elements

0 commit comments

Comments
 (0)