[PATCH] tldap: Add a missing TALLOC_FREE(frame)

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Feb 8 13:44:15 UTC 2016


Hi!

Review 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 64fba5d76a08fbea79a8da98e3aeae04113fa0a3 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 8 Feb 2016 14:40:19 +0100
Subject: [PATCH] tldap: Add a missing TALLOC_FREE(frame)

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

diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index a702783..6f42e61 100644
--- a/source3/lib/tldap.c
+++ b/source3/lib/tldap.c
@@ -1987,7 +1987,7 @@ TLDAPRC tldap_search(struct tldap_context *ld,
 	rc = tldap_search_all_recv(req, mem_ctx, &msgs, &result);
 	TALLOC_FREE(req);
 	if (!TLDAP_RC_IS_SUCCESS(rc)) {
-		return rc;
+		goto fail;
 	}
 
 	TALLOC_FREE(ld->last_msg);
-- 
2.1.4



More information about the samba-technical mailing list