Is this a real memory leak?

Andrew Bartlett abartlet at samba.org
Thu Jun 29 09:56:01 UTC 2023


On Thu, 2023-06-29 at 11:48 +0200, Ferenc Wágner via samba-technical
wrote:
> Jeremy Allison <jra at samba.org> writes:
> > On Tue, Jun 27, 2023 at 12:41:15PM +0200, Ferenc Wágner via samba-
> > technical wrote:
> > > Please take a look at the following patch, taken from
> > > https://github.com/balabit-deps/balabit-os-8-samba/commit/5f46ae6282db1457b8ef8bbfb4e97eb4aadd55b4
> > > :
> > > From 5f46ae6282db1457b8ef8bbfb4e97eb4aadd55b4 Mon Sep 17 00:00:00
> > > 2001From: Balazs Scheidler <bazsi at balabit.hu>Date: Wed, 22 Aug
> > > 2012 11:34:43 +0200Subject: [PATCH] nsswitch/libwbclient: fixed a
> > > memory leak in wbcAuthenticateUserEx
> > > (cherry picked from commit zorp-os-5.0 /
> > > f0e88410bd2528517910f780d71e63f8effb91ef)---
> > > nsswitch/libwbclient/wbc_pam.c | 1 +1 file changed, 1
> > > insertion(+)
> > > diff --git a/nsswitch/libwbclient/wbc_pam.c
> > > b/nsswitch/libwbclient/wbc_pam.cindex e4cd2963..b16c9424 100644
> > > --- a/nsswitch/libwbclient/wbc_pam.c+++
> > > b/nsswitch/libwbclient/wbc_pam.c@@ -415,6 +415,7 @@ wbcErr
> > > wbcCtxAuthenticateUserEx(struct wbcContext
> > > *ctx,                                 params-
> > > >domain_name,                                 sep_response.data.i
> > > nfo.winbind_separator,                                 params-
> > > >account_name);+                       winbindd_free_response(&se
> > > p_response);                } else
> > > {                        strncpy(request.data.auth.user,         
> > >                        params->account_name,
> > > Do you agree that this patches an actual memory leak?  If so,
> > > would youplease consider taking it?
> > 
> > Thanks Ferenc, this does look like a real memory leak to me.
> 
> Thanks for taking the time, Jeremy!  What could I do to get
> thisincluded in Samba, what's the preferred process for submitting
> patches?

Ideally https://wiki.samba.org/index.php/Contribute but I suspect we
may be able to do something less heavyweight. 

Do you know Balazs?  I'm not sure we strictly need it for one line, but
ideally we get a signed-off-by and a developer declaration from them.

Andrew,


-- 
Andrew Bartlett (he/him)       https://samba.org/~abartlet/Samba Team Member (since 2001) https://samba.orgSamba Team Lead                https://catalyst.net.nz/services/sambaCatalyst.Net Ltd
Proudly developing Samba for Catalyst.Net Ltd - a Catalyst IT group
company
Samba Development and Support: https://catalyst.net.nz/services/samba
Catalyst IT - Expert Open Source Solutions


More information about the samba-technical mailing list