memory leak in winbindd 3.0-alpha13
Simo Sorce
idra at samba.org
Mon Feb 18 04:31:03 GMT 2002
Seem tridge has checked in the fix, thanks.
Simo.
On Mon, Feb 18, 2002 at 12:08:42PM -0500, Leducq Dominique wrote:
> Hello,
>
> Doing some tests with winbindd (I used 3.0-alpha13), I found a memory leak,
> that may have been fixed since then, but I didn't saw that browsing the cvs...
>
> The problem is with a TALLOC_CTX (named "main loop talloc (mainly
> parse_misc)") beeing created in rpc_parse/parse_misc.c:main_loop_talloc_get()
> and used in each RPC call, but never beeing cleaned up. The alternative,
> current_rpc_talloc, seems never to be used.
>
> Here's a possible patch, that is solving the problem for me :
>
> *** nsswitch/winbindd.c Sat Feb 16 21:06:40 2002
> --- nsswitch/winbindd.c Sat Feb 16 22:35:58 2002
> ***************
> *** 280,285****
> --- 280,286 ----
> if (state->request.cmd == table->cmd) {
> DEBUG(10,("process_request: request fn %s\n", table->winbindd_cmd_name
> ));
> state->response.result = table->fn(state);
> + main_loop_talloc_free();
> break;
> }
> }
>
> Dominique Leducq
>
--
Simo Sorce idra at samba.org
-------------------------------
Samba Team http://www.samba.org
More information about the samba-technical
mailing list