The Samba-Bugzilla – Attachment 14758 Details for
Bug 13737
Memory leak in lib/audit_logging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.9
bug-13737.patch (text/plain), 1.24 KB, created by
Gary Lockyer
on 2019-01-08 21:30:18 UTC
(
hide
)
Description:
Patch for 4.9
Filename:
MIME Type:
Creator:
Gary Lockyer
Created:
2019-01-08 21:30:18 UTC
Size:
1.24 KB
patch
obsolete
>From 4186b5aa8cda93477de7ba156ce149f2441a3b4b Mon Sep 17 00:00:00 2001 >From: Philipp Gesang <philipp.gesang@intra2net.com> >Date: Tue, 18 Dec 2018 16:09:19 +0100 >Subject: [PATCH] lib/audit_logging: actually create talloc > >Heal damage of 79f494e51e.. > >That context is being passed around and freed but is never >actually allocated on that stack. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=13737 > >Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com> >Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> >Reviewed-by: Jeremy Allison <jra@samba.org> > >(cherry picked from commit 5c928d7cd1d0ac994fe95892eec235b939ad2ec9) >--- > lib/audit_logging/audit_logging.c | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/lib/audit_logging/audit_logging.c b/lib/audit_logging/audit_logging.c >index 4ae18fb773b..3bb49f7cfc3 100644 >--- a/lib/audit_logging/audit_logging.c >+++ b/lib/audit_logging/audit_logging.c >@@ -245,6 +245,12 @@ void audit_message_send( > return; > } > >+ ctx = talloc_new(NULL); >+ if (ctx == NULL) { >+ DBG_ERR("Out of memory creating temporary context\n"); >+ return; >+ } >+ > /* Need to refetch the address each time as the destination server may > * have disconnected and reconnected in the interim, in which case > * messages may get lost >-- >2.17.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
gary
:
review?
(
abartlet
)
timbeale
:
review+
Actions:
View
Attachments on
bug 13737
: 14758