The Samba-Bugzilla – Attachment 13805 Details for
Bug 13153
sock_daemon leaks memory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patches for v4-7
BZ13153-v4-7.patch (text/plain), 1.11 KB, created by
Amitay Isaacs
on 2017-11-22 04:33:41 UTC
(
hide
)
Description:
Patches for v4-7
Filename:
MIME Type:
Creator:
Amitay Isaacs
Created:
2017-11-22 04:33:41 UTC
Size:
1.11 KB
patch
obsolete
>From bcfbe7ac1fc661a542bc2888caf6dcc8824a101b Mon Sep 17 00:00:00 2001 >From: Amitay Isaacs <amitay@gmail.com> >Date: Fri, 10 Nov 2017 12:18:01 +1100 >Subject: [PATCH] ctdb-common: Call missing tevent_wakeup_recv() in sock_daemon > >https://bugzilla.samba.org/show_bug.cgi?id=13153 > >Signed-off-by: Amitay Isaacs <amitay@gmail.com> >Reviewed-by: Martin Schwenke <martin@meltin.net> >(cherry picked from commit 49308f7f22f3d6fa05cc81fdef3db020e503fa9f) >--- > ctdb/common/sock_daemon.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/ctdb/common/sock_daemon.c b/ctdb/common/sock_daemon.c >index b53b4d85333..1fe5ff50720 100644 >--- a/ctdb/common/sock_daemon.c >+++ b/ctdb/common/sock_daemon.c >@@ -628,6 +628,14 @@ static void sock_daemon_run_started(struct tevent_req *subreq) > struct sock_daemon_run_state *state = tevent_req_data( > req, struct sock_daemon_run_state); > struct sock_daemon_context *sockd = state->sockd; >+ bool status; >+ >+ status = tevent_wakeup_recv(subreq); >+ TALLOC_FREE(subreq); >+ if (! status) { >+ tevent_req_error(req, EIO); >+ return; >+ } > > D_NOTICE("daemon started, pid=%u\n", getpid()); > >-- >2.13.6 >
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:
martins
:
review+
Actions:
View
Attachments on
bug 13153
:
13804
| 13805