diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-11-03 15:13:11 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-11-03 15:13:12 -0800 |
commit | c3c592ef95ee21833e2214fb9068889dcac220c9 (patch) | |
tree | 6772b21ff5964ab2227d5c7acb4246eaa9729152 /run-command.h | |
parent | 6784eb5ad93da15d24a5d111a3d6df618f98532f (diff) | |
parent | b1b49ff8d42a21ade6a72b40a147fd3eaff3db8d (diff) | |
download | git-c3c592ef95ee21833e2214fb9068889dcac220c9.tar.gz |
Merge branch 'rs/daemon-plug-child-leak'
"git daemon" uses "run_command()" without "finish_command()", so it
needs to release resources itself, which it forgot to do.
* rs/daemon-plug-child-leak:
daemon: plug memory leak
run-command: factor out child_process_clear()
Diffstat (limited to 'run-command.h')
-rw-r--r-- | run-command.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/run-command.h b/run-command.h index 5428b048e2..12bb26c2a6 100644 --- a/run-command.h +++ b/run-command.h @@ -47,6 +47,7 @@ struct child_process { #define CHILD_PROCESS_INIT { NULL, ARGV_ARRAY_INIT, ARGV_ARRAY_INIT } void child_process_init(struct child_process *); +void child_process_clear(struct child_process *); int start_command(struct child_process *); int finish_command(struct child_process *); |