diff options
author | Jeff King <peff@peff.net> | 2014-05-15 04:34:18 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-05-15 09:49:11 -0700 |
commit | e0ab2ac6c553cbba5d0275cfd35beb3351cae034 (patch) | |
tree | 0ef63c5251d93f9b6760d5ff84a0fde46875e003 /t | |
parent | git_connect: use argv_array (diff) | |
download | tgif-e0ab2ac6c553cbba5d0275cfd35beb3351cae034.tar.xz |
get_helper: use run-command's internal argv_array
The get_helper functions dynamically allocates an
argv_array, feeds it to start_command, and then returns. We
then have to later clean up the memory manually after
calling finish_command. We can make this simpler by just
using run-command's internal argv_array, which handles
cleanup for us.
This also prevents a memory leak in the case that
transport_take_over is used, in which case we free the child
in finish_connect, which does not manually free the array.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions