v01d commented on pull request #2302: URL: https://github.com/apache/incubator-nuttx/pull/2302#issuecomment-729066228
Well, the allocated buffer needs to be freed eventually, don't see why that it is odd. The only reason why this isn't done there for both cases is NuttX's stack need to keep the buffer around for some more time. It is a consequence of having the host stack deal with BT buffers to implement the protocol in contrast to an implementation via sockets where data is handled externally (ie, the buffer only lives to be transfered between network to driver layer and viceversa). ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org