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 /daemon.c | |
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 'daemon.c')
-rw-r--r-- | daemon.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -802,6 +802,7 @@ static void check_dead_children(void) /* remove the child */ *cradle = blanket->next; live_children--; + child_process_clear(&blanket->cld); free(blanket); } else cradle = &blanket->next; |