receive-pack: plug minor memory leak in unpack()
commit64a7e92f28e9bc053cf68d9b2e9ce4fb40e60e98
authorRené Scharfe <l.s.r@web.de>
Sat, 11 Oct 2014 11:00:16 +0000 (11 13:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Oct 2014 18:50:20 +0000 (13 11:50 -0700)
tree22501188a5530bc4cc21c7ce0ece8e7de14b7572
parent76f8611a5fb7e81c1bada0fb190d573a66fc03f6
receive-pack: plug minor memory leak in unpack()

The argv_array used in unpack() is never freed.  Instead of adding
explicit calls to argv_array_clear() use the args member of struct
child_process and let run_command() and friends clean up for us.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c