assert on free in interrupt, too
Change-Id: I825496c81c2259f4af7f80089a0b047c5600a211
This commit is contained in:
parent
7528d9cd9c
commit
6e1ad837b2
|
@ -1747,6 +1747,9 @@ _PUBLIC_ int _talloc_free(void *ptr, const char *location)
|
|||
{
|
||||
struct talloc_chunk *tc;
|
||||
|
||||
// do not deallocate while handling interrupts!
|
||||
OSMO_ASSERT( !(SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) )
|
||||
|
||||
if (unlikely(ptr == NULL)) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue