[PATCH] ctdbd_conn: Fix a leak on talloc_tos()

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Jun 15 08:48:59 MDT 2015


Hi!

Review&push appreciated!

Thanks,

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From e7c3611c6bd58e4f293e01a8e3427c0b63389eee Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 15 Jun 2015 14:47:50 +0000
Subject: [PATCH] ctdbd_conn: Fix a leak on talloc_tos()

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 source3/lib/ctdbd_conn.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 9ad58fe..7a95b79c 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -597,6 +597,9 @@ static void ctdbd_socket_handler(struct tevent_context *event_ctx,
 	}
 
 	status = ctdb_handle_message(conn, hdr);
+
+	TALLOC_FREE(hdr);
+
 	if (!NT_STATUS_IS_OK(status)) {
 		DEBUG(10, ("could not handle incoming message: %s\n",
 			   nt_errstr(status)));
-- 
1.7.9.5



More information about the samba-technical mailing list