Revision 27ed6ccc12a331a1e6014f2fe101a2c551167e9e authored by Jeff King on 27 August 2020, 05:25:04 UTC, committed by Junio C Hamano on 27 August 2020, 15:30:17 UTC
We allocate a child_env strvec but never free its memory. Instead, let's
just use the strvec that our child_process struct provides, which is
cleaned up automatically when we run the command.

And while we're moving the initialization of the child_process around,
let's switch it to use the official init function (zero-initializing it
works OK, since strvec is happy enough with that, but it sets a bad
example).

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 47ae905
History
File Mode Size
.gitignore -rw-r--r-- 7 bytes
README -rw-r--r-- 10.5 KB
TEAMS -rw-r--r-- 2.6 KB
bg.po -rw-r--r-- 942.7 KB
ca.po -rw-r--r-- 729.1 KB
de.po -rw-r--r-- 743.8 KB
el.po -rw-r--r-- 524.1 KB
es.po -rw-r--r-- 738.5 KB
fr.po -rw-r--r-- 743.6 KB
git.pot -rw-r--r-- 471.6 KB
is.po -rw-r--r-- 3.3 KB
it.po -rw-r--r-- 760.2 KB
ko.po -rw-r--r-- 557.6 KB
pt_PT.po -rw-r--r-- 482.9 KB
ru.po -rw-r--r-- 745.3 KB
sv.po -rw-r--r-- 762.4 KB
tr.po -rw-r--r-- 730.4 KB
vi.po -rw-r--r-- 844.9 KB
zh_CN.po -rw-r--r-- 687.9 KB
zh_TW.po -rw-r--r-- 690.9 KB

README

back to top