Skip to content

Commit

Permalink
transport: free leaking head in transport_print_push_status()
Browse files Browse the repository at this point in the history
Found by scan.coverity.com (ID: 1248110)

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Stefan Beller authored and Junio C Hamano committed Oct 21, 2014
1 parent 3c2dc76 commit dc76c7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ void transport_print_push_status(const char *dest, struct ref *refs,
*reject_reasons |= REJECT_NEEDS_FORCE;
}
}
free(head);
}

void transport_verify_remote_names(int nr_heads, const char **heads)
Expand Down

0 comments on commit dc76c7f

Please sign in to comment.