path: root/Documentation/technical
diff options
authorJunio C Hamano <>2015-11-05 20:18:16 (GMT)
committerJunio C Hamano <>2015-11-05 20:18:17 (GMT)
commitb8f5242592146c85c2e09fd9721e522ce4dd32e5 (patch)
treeef6940721a58a3b0c747a4e756dfc80e8a48756a /Documentation/technical
parentdb43891ce60d0f713a41cfc46097262c73aa99d7 (diff)
parentb1b49ff8d42a21ade6a72b40a147fd3eaff3db8d (diff)
Merge branch 'rs/daemon-plug-child-leak' into maint
"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 'Documentation/technical')
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/technical/api-run-command.txt b/Documentation/technical/api-run-command.txt
index a9fdb45..8bf3e37 100644
--- a/Documentation/technical/api-run-command.txt
+++ b/Documentation/technical/api-run-command.txt
@@ -46,6 +46,13 @@ Functions
The argument dir corresponds the member .dir. The argument env
corresponds to the member .env.
+ Release the memory associated with the struct child_process.
+ Most users of the run-command API don't need to call this
+ function explicitly because `start_command` invokes it on
+ failure and `finish_command` calls it automatically already.
The functions above do the following:
. If a system call failed, errno is set and -1 is returned. A diagnostic