mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 11:25:41 +00:00
lib: assert on duplicate free (count)
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
e292fcc471
commit
fd7aa3f557
@ -40,6 +40,7 @@ mt_count_alloc (struct memtype *mt, size_t size)
|
|||||||
static inline void
|
static inline void
|
||||||
mt_count_free (struct memtype *mt)
|
mt_count_free (struct memtype *mt)
|
||||||
{
|
{
|
||||||
|
assert(mt->n_alloc);
|
||||||
mt->n_alloc--;
|
mt->n_alloc--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user