summaryrefslogtreecommitdiff
path: root/transport-helper.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-10-28 21:27:54 +0100
committerJunio C Hamano <gitster@pobox.com>2014-10-28 14:55:15 -0700
commit5d222c099e38bcf329af544ec42ad3dd0644741c (patch)
treeba50aa729f870dbb5d0dc914843161a363599528 /transport-helper.c
parentb9459019bbb7b864cf59fa307953834996ab4dbe (diff)
downloadgit-5d222c099e38bcf329af544ec42ad3dd0644741c.tar.gz
receive-pack: avoid minor leak in case start_async() fails
If the asynchronous start of copy_to_sideband() fails, then any env_array entries added to struct child_process proc by prepare_push_cert_sha1() are leaked. Call the latter function only after start_async() succeeded so that the allocated entries are cleaned up automatically by start_command() or finish_command(). Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
0 files changed, 0 insertions, 0 deletions