mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 23:23:35 +00:00
Merge pull request #17680 from FRRouting/mergify/bp/stable/10.0/pr-17675
bgpd: Fix memory leak when creating BMP connection with a source interface (backport #17675)
This commit is contained in:
commit
80f5df3f09
@ -2392,8 +2392,11 @@ DEFPY(bmp_connect,
|
||||
}
|
||||
|
||||
ba = bmp_active_get(bt, hostname, port);
|
||||
if (srcif)
|
||||
if (srcif) {
|
||||
if (ba->ifsrc)
|
||||
XFREE(MTYPE_TMP, ba->ifsrc);
|
||||
ba->ifsrc = XSTRDUP(MTYPE_TMP, srcif);
|
||||
}
|
||||
if (min_retry_str)
|
||||
ba->minretry = min_retry;
|
||||
if (max_retry_str)
|
||||
|
Loading…
Reference in New Issue
Block a user