If the INTR granule allocator mode is enabled, there is no
semaphore to destroy. From Lorenz Meier.
This commit is contained in:
parent
b5d737aa00
commit
f06289e4d5
@ -84,7 +84,9 @@ FAR struct gran_s *g_graninfo;
|
||||
static inline void gran_release_common(FAR struct gran_s *priv)
|
||||
{
|
||||
DEBUGASSERT(priv);
|
||||
#ifndef CONFIG_GRAN_INTR
|
||||
sem_destroy(&priv->exclsem);
|
||||
#endif
|
||||
kmm_free(priv);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user