Skip to content

Commit

Permalink
ovn-nbctl: Fix leak of array of new policies.
Browse files Browse the repository at this point in the history
CC: Tao YunXiang <taoyunxiang@cmss.chinamobile.com>
Fixes: 5820502 ("ovn-nbctl.c: Fix lr-policy-del command")
Acked-by: Dumitru Ceara <dceara@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Numan Siddique <numans@ovn.org>
  • Loading branch information
igsilya authored and numansiddique committed Nov 22, 2020
1 parent 47385c8 commit f3b8cbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utilities/ovn-nbctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3758,6 +3758,7 @@ nbctl_lr_policy_del(struct ctl_context *ctx)
if (!shash_find(&ctx->options, "--if-exists")) {
ctl_error(ctx, "Logical router policy uuid is not found.");
}
free(new_policies);
return;
}

Expand Down

0 comments on commit f3b8cbb

Please sign in to comment.