Skip to content

Commit

Permalink
ovn-nbctl: Fix mem leak in nbctl_lrp_set_gateway_chassis().
Browse files Browse the repository at this point in the history
Fix fall-out from applying a semantic patch to propagate the error.

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
Jakub Sitnicki authored and blp committed Jul 23, 2018
1 parent 1d06fb2 commit e48864f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ovn/utilities/ovn-nbctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3474,6 +3474,7 @@ nbctl_lrp_set_gateway_chassis(struct ctl_context *ctx)
error = gc_by_name_or_uuid(ctx, gc_name, false, &existing_gc);
if (error) {
ctx->error = error;
free(gc_name);
return;
}
if (existing_gc) {
Expand Down

0 comments on commit e48864f

Please sign in to comment.