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:

committed by
Junio C Hamano

parent
3c2dc76f01
commit
dc76c7f783
@ -774,6 +774,7 @@ void transport_print_push_status(const char *dest, struct ref *refs,
|
|||||||
*reject_reasons |= REJECT_NEEDS_FORCE;
|
*reject_reasons |= REJECT_NEEDS_FORCE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free(head);
|
||||||
}
|
}
|
||||||
|
|
||||||
void transport_verify_remote_names(int nr_heads, const char **heads)
|
void transport_verify_remote_names(int nr_heads, const char **heads)
|
||||||
|
Reference in New Issue
Block a user