Skip to content
Permalink
Browse files

bfdd: fix zebra_ptm adapter memory leak

Memory leak detect with Address Sanitizer and topotests.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
  • Loading branch information...
rzalamena committed Aug 16, 2018
1 parent ae9f45a commit 7efe273ae4a30b7e617678a9a1933cbfcf8608e1
Showing with 2 additions and 0 deletions.
  1. +2 −0 zebra/zebra_ptm.c
@@ -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)

0 comments on commit 7efe273

Please sign in to comment.
You can’t perform that action at this time.