[PATCH] memory leak fix in cli_pipe.c
Tim Potter
tpot at samba.org
Mon Aug 4 02:44:25 GMT 2003
On Mon, Aug 04, 2003 at 02:39:24AM +0000, Jeremy Allison wrote:
> Yeah, looks completely correct - please apply. Actually I don't
> think it's losing 8 bytes as the prs_struct is created with the
> talloc context associated with the rpc. So I'm pretty sure it's
> always being freed. Still, the code matches the other exits :-).
>
> Go for it.
Cool. Thanks Jeremy.
The problem turns out to be that the prs_struct is initialised with
a non-zero size argument which is allocated using malloc, not talloc.
Tim.
More information about the samba-technical
mailing list