This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit ac4364109041042520212cae5a1bb6dd354d5d94
Author: raiden00pl <[email protected]>
AuthorDate: Sat Oct 24 13:47:35 2026 +0200

    wireless/ieee802154: free the IOB of a frame with invalid meta-data
    
    The MAC character device returned without freeing the IOB it allocated
    for the frame when the TX meta-data was invalid.
    
    Assisted-by: Claude Code
    Signed-off-by: raiden00pl <[email protected]>
---
 wireless/ieee802154/mac802154_device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wireless/ieee802154/mac802154_device.c 
b/wireless/ieee802154/mac802154_device.c
index 314056a733b..108e38bb953 100644
--- a/wireless/ieee802154/mac802154_device.c
+++ b/wireless/ieee802154/mac802154_device.c
@@ -535,6 +535,7 @@ static ssize_t mac802154dev_write(FAR struct file *filep,
   if (ret < 0)
     {
       wlerr("ERROR: TX meta-data is invalid");
+      iob_free(iob);
       return ret;
     }
 

Reply via email to