Skip to content

Commit

Permalink
zebra: fix ptm heap double free
Browse files Browse the repository at this point in the history
Don't need to free these, they're freed by the caller.

Signed-off-by: Quentin Young <[email protected]>
  • Loading branch information
qlyoung committed Jan 7, 2020
1 parent 5c3be08 commit ad1b29c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions zebra/zebra_ptm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,6 @@ static void zebra_ptm_send_bfdd(struct stream *msg)
}

stream_free(msgc);
stream_free(msg);
}

static void zebra_ptm_send_clients(struct stream *msg)
Expand Down Expand Up @@ -1327,7 +1326,6 @@ 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)
Expand Down

0 comments on commit ad1b29c

Please sign in to comment.