mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
graphics/nxterm: destroy nxmutex/nxsem properly
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
a1abb818a9
commit
4413c5a563
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue