Skip to content

Commit 2535a6c

Browse files
author
Arto Kinnunen
committed
Merge branch 'release_internal' into release_external
* release_internal: Fixed possible memory leak at mac pd_sap_ind() function.
2 parents 7963594 + 6bc9e00 commit 2535a6c

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)