graphics/nxterm: destroy nxmutex/nxsem properly

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-11-20 21:49:22 +08:00 committed by Xiang Xiao
parent a1abb818a9
commit 4413c5a563

View file

@ -143,6 +143,10 @@ FAR struct nxterm_state_s *
return (NXTERM)priv;
errout:
nxmutex_destroy(&priv->lock);
#ifdef CONFIG_NXTERM_NXKBDIN
nxsem_destroy(&priv->waitsem);
#endif
kmm_free(priv);
return NULL;
}