drivers/misc/rpmsgdev: destroy nxmutex properly

This commit is contained in:
chao an 2022-11-20 21:46:53 +08:00 committed by Xiang Xiao
parent 40581558d3
commit a1abb818a9

View File

@ -403,6 +403,7 @@ static void rpmsgdev_ns_bind(FAR struct rpmsg_device *rdev,
rpmsgdev_ept_cb, rpmsgdev_ns_unbind);
if (ret < 0)
{
nxmutex_destroy(&server->lock);
kmm_free(server);
}
}