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:
Rafael Zalamena 2018-08-16 15:23:13 -03:00
parent ae9f45a3ae
commit 7efe273ae4

View File

@ -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)