Skip to content

Commit dc76c7f

Browse files
stefanbellergitster
authored andcommitted
transport: free leaking head in transport_print_push_status()
Found by scan.coverity.com (ID: 1248110) Signed-off-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3c2dc76 commit dc76c7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ void transport_print_push_status(const char *dest, struct ref *refs,
774774
*reject_reasons |= REJECT_NEEDS_FORCE;
775775
}
776776
}
777+
free(head);
777778
}
778779

779780
void transport_verify_remote_names(int nr_heads, const char **heads)

0 commit comments

Comments
 (0)