[PATCH] messaging3: Fix a talloc_tos memleak

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Jun 3 06:17:47 MDT 2014


Hi!

Review would be 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 890674a4fa43f6f236c6204fc46cb77253087c13 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 2 Jun 2014 22:48:56 +0200
Subject: [PATCH] messaging3: Fix a talloc_tos memleak

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

diff --git a/source3/lib/messages_dgm.c b/source3/lib/messages_dgm.c
index 9b58d9e..ba13fc9 100644
--- a/source3/lib/messages_dgm.c
+++ b/source3/lib/messages_dgm.c
@@ -130,6 +130,7 @@ static int messaging_dgm_lockfile_create(const char *cache_dir, pid_t pid,
 		goto fail_unlink;
 	}
 
+	TALLOC_FREE(lockfile_name);
 	*plockfile_fd = lockfile_fd;
 	return 0;
 
-- 
1.7.9.5



More information about the samba-technical mailing list