anchao commented on code in PR #7628: URL: https://github.com/apache/incubator-nuttx/pull/7628#discussion_r1027300737
########## drivers/misc/rwbuffer.c: ########## @@ -842,6 +843,19 @@ int rwb_initialize(FAR struct rwbuffer_s *rwb) { ferr("Read-ahead buffer kmm_malloc(%" PRIu32 ") failed\n", allocsize); + nxmutex_destroy(&rwb->rhlock); +#ifdef CONFIG_DRVR_WRITEBUFFER + if (rwb->wrmaxblocks > 0) + { + nxmutex_destroy(&rwb->wrlock); + } + + if (rwb->wrbuffer) Review Comment: Done -- 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...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org