summaryrefslogtreecommitdiff
path: root/builtin-tar-tree.c
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <johannes.sixt@telecom.at>2007-12-17 20:12:52 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-12-17 16:08:40 -0800
commit68e6a4f80d4bea2d281c30fa2bbcd4968b0ccc4e (patch)
treec544c7a588a48b6d0a310cd46f7114cc99a69ee8 /builtin-tar-tree.c
parentDocumentation/git-submodule: refer to gitmodules(5) (diff)
downloadtgif-68e6a4f80d4bea2d281c30fa2bbcd4968b0ccc4e.tar.xz
Plug a resource leak in threaded pack-objects code.
A mutex and a condition variable is allocated for each thread and torn down when the thread terminates. However, for certain workloads it can happen that some threads are actually not started at all. In this case we would leak the mutex and condition variable. Now we allocate them only for those threads that are actually started. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-tar-tree.c')
0 files changed, 0 insertions, 0 deletions