mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
Merge pull request #18000 from donaldsharp/bgp_eoiu_mem_leak
bgpd: Fix up memory leak in processing eoiu marker
This commit is contained in:
commit
8d71ce9d7d
@ -4129,6 +4129,9 @@ static void process_eoiu_marker(struct bgp_dest *dest)
|
||||
subqueue2str(META_QUEUE_EOIU_MARKER));
|
||||
|
||||
bgp_process_main_one(info->bgp, NULL, 0, 0);
|
||||
|
||||
XFREE(MTYPE_BGP_EOIU_MARKER_INFO, info);
|
||||
XFREE(MTYPE_BGP_NODE, dest);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -4319,6 +4322,7 @@ static void eoiu_marker_queue_free(struct meta_queue *mq, struct bgp_dest_queue
|
||||
XFREE(MTYPE_BGP_EOIU_MARKER_INFO, dest->info);
|
||||
STAILQ_REMOVE_HEAD(l, pq);
|
||||
STAILQ_NEXT(dest, pq) = NULL; /* complete unlink */
|
||||
XFREE(MTYPE_BGP_NODE, dest);
|
||||
mq->size--;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user