r18584: found one of the fd leaks. The registry backend was using a
authorAndrew Tridgell <tridge@samba.org>
Sat, 16 Sep 2006 16:59:37 +0000 (16:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:18:52 +0000 (14:18 -0500)
commit655b710204e7a7d8e486da7ba675fcbeed116fea
tree30a4c72758cd1526ce79a1f1c289c4159dba3578
parentd01bbe68424da9fd0c67d2dc383f13a8ede8ac78
r18584: found one of the fd leaks. The registry backend was using a
talloc(NULL, xxx) to allocate the registry context. That had two
consequences

1) it was a massive memory leak, as all winreg operations leaked their
   entire context (including an open ldb database) every time

2) event_context_find() never found the exsting event context, so we
   used a new event context each time, which called epoll_create()
   each time, which caused a fd to be allocated
(This used to be commit 1c0a3de39828b43149d8981fc7f10e7c8b59a392)
source4/gtk/tools/gregedit.c
source4/lib/registry/reg_samba.c
source4/lib/registry/tools/regdiff.c
source4/lib/registry/tools/regpatch.c
source4/lib/registry/tools/regshell.c
source4/lib/registry/tools/regtree.c
source4/rpc_server/winreg/rpc_winreg.c