If the INTR granule allocator mode is enabled, there is no

semaphore to destroy.  From Lorenz Meier.
This commit is contained in:
Gregory Nutt 2014-11-12 06:56:32 -06:00
parent b5d737aa00
commit f06289e4d5

View file

@ -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);
}