pfyra opened a new issue, #1590: URL: https://github.com/apache/mynewt-nimble/issues/1590
Hello, I am using an STM32 (with FreeRTOS) connected through uart to an NXP 88w8987. While working on getting nimble to work I noticed that HCI commands sent from host to controller with ble_hs_hci_cmd_send are not freed. There is a buffer of size 1 (i.e. 1 command) so I got a crash on the second command due to failed memory allocation. I have modified nimble/host/src/ble_hs_hci_cmd.c like this: ble_hs_hci_cmd_send(uint16_t opcode, uint8_t len, const void *cmddata) { .... ble_transport_free_cmd(cmd); return rc; } and added the free-function to nimble/transport/src/transport.c: os_error_t ble_transport_free_cmd(void * cmd) { return os_memblock_put(&pool_cmd, cmd); } and now it works for me. Is the free-ing missing or am I missing something? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@mynewt.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org