Skip to content

Commit

Permalink
pinctrl: Fix memory leak when handling empty lb backends.
Browse files Browse the repository at this point in the history
Fixes: 7c3523c ("OVN: introduce trigger_event() action")
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
Signed-off-by: Numan Siddique <numans@ovn.org>
  • Loading branch information
dceara authored and numansiddique committed Oct 28, 2020
1 parent 1b7fe34 commit 7901ef3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controller/pinctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -5744,6 +5744,9 @@ pinctrl_handle_empty_lb_backends_opts(struct ofpbuf *userdata)
if (!vip || !protocol || !load_balancer) {
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
VLOG_WARN_RL(&rl, "missing lb parameters in userdata");
free(vip);
free(protocol);
free(load_balancer);
return false;
}

Expand Down

0 comments on commit 7901ef3

Please sign in to comment.