Skip to content

Commit

Permalink
tls: allow free(NULL) with DBG_QM_MALLOC enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed May 14, 2014
1 parent 0338917 commit 99b049b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tls/tls_init.c
Expand Up @@ -210,7 +210,8 @@ ser_realloc(void *ptr, size_t size)
static void
ser_free(void *ptr)
{
shm_free(ptr);
if (ptr)
shm_free(ptr);
}


Expand Down

0 comments on commit 99b049b

Please sign in to comment.