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)
commit1c0a3de39828b43149d8981fc7f10e7c8b59a392
tree2d860fbd18b6d1b2b8d3e8f44485f43a5345616c
parent83bf458ec98d9f2a21b3748802f41abcbcc1e0b2
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
source/gtk/tools/gregedit.c
source/lib/registry/reg_samba.c
source/lib/registry/tools/regdiff.c
source/lib/registry/tools/regpatch.c
source/lib/registry/tools/regshell.c
source/lib/registry/tools/regtree.c
source/rpc_server/winreg/rpc_winreg.c