mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 18:52:04 +00:00
bfdd: fix zebra_ptm adapter memory leak
Memory leak detect with Address Sanitizer and topotests. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
ae9f45a3ae
commit
7efe273ae4
@ -1283,6 +1283,7 @@ static void zebra_ptm_send_bfdd(struct stream *msg)
|
||||
}
|
||||
|
||||
stream_free(msgc);
|
||||
stream_free(msg);
|
||||
}
|
||||
|
||||
static void zebra_ptm_send_clients(struct stream *msg)
|
||||
@ -1323,6 +1324,7 @@ static void zebra_ptm_send_clients(struct stream *msg)
|
||||
}
|
||||
|
||||
stream_free(msgc);
|
||||
stream_free(msg);
|
||||
}
|
||||
|
||||
static int _zebra_ptm_bfd_client_deregister(struct zserv *zs)
|
||||
|
Loading…
Reference in New Issue
Block a user