diff --git a/drivers/mtd/rpmsgmtd.c b/drivers/mtd/rpmsgmtd.c index 7612cb06bf..aeaa83814f 100644 --- a/drivers/mtd/rpmsgmtd.c +++ b/drivers/mtd/rpmsgmtd.c @@ -1109,6 +1109,7 @@ fail_with_rpmsg: fail: nxsem_destroy(&dev->wait); + nxmutex_destroy(&dev->geolock); kmm_free(dev); return ret; }