summaryrefslogtreecommitdiff
path: root/lib/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memory.c')
-rw-r--r--lib/memory.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/memory.c b/lib/memory.c
index 9ec564151a..ad55366f64 100644
--- a/lib/memory.c
+++ b/lib/memory.c
@@ -41,11 +41,7 @@ mt_count_alloc (struct memtype *mt, size_t size)
static inline void
mt_count_free (struct memtype *mt)
{
- if (mt->n_alloc == 0)
- {
- zlog_err ("memory allocation count underflow for \"%s\"", mt->name);
- zlog_backtrace (LOG_ERR);
- }
+ assert(mt->n_alloc);
mt->n_alloc--;
}