mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
transport: free leaking head in transport_print_push_status()
Found by scan.coverity.com (ID: 1248110) Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
3c2dc76f01
commit
dc76c7f783
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user