mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
drivers/mtd: destroy nxmutex properly
This commit is contained in:
@@ -1109,6 +1109,7 @@ fail_with_rpmsg:
|
||||
|
||||
fail:
|
||||
nxsem_destroy(&dev->wait);
|
||||
nxmutex_destroy(&dev->geolock);
|
||||
kmm_free(dev);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user