summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zebra/label_manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/label_manager.c b/zebra/label_manager.c
index 9f8378572..bf67141cd 100644
--- a/zebra/label_manager.c
+++ b/zebra/label_manager.c
@@ -228,6 +228,7 @@ struct label_manager_chunk *assign_label_chunk(u_char proto, u_short instance,
if (lmc->start > MPLS_MAX_UNRESERVED_LABEL - size + 1) {
zlog_err("Reached max labels. Start: %u, size: %u", lmc->start,
size);
+ XFREE(MTYPE_LM_CHUNK, lmc);
return NULL;
}
lmc->end = lmc->start + size - 1;