mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
graphics/nxterm: destroy nxmutex/nxsem properly
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -143,6 +143,10 @@ FAR struct nxterm_state_s *
|
|||||||
return (NXTERM)priv;
|
return (NXTERM)priv;
|
||||||
|
|
||||||
errout:
|
errout:
|
||||||
|
nxmutex_destroy(&priv->lock);
|
||||||
|
#ifdef CONFIG_NXTERM_NXKBDIN
|
||||||
|
nxsem_destroy(&priv->waitsem);
|
||||||
|
#endif
|
||||||
kmm_free(priv);
|
kmm_free(priv);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user