From 5f75814586f2d6f7c2dc8fd9342cb045c1f7e68c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 14 Aug 2013 09:27:59 +0000 Subject: winbind3: Fix an invalid free MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a warning I've never seen before :-) ../source3/winbindd/winbindd_cm.c:781:59: warning: attempt to free a non-heap object ‘machine_krb5_principal’ [-Wfree-nonheap-object] Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Wed Aug 14 14:04:16 CEST 2013 on sn-devel-104 --- source3/winbindd/winbindd_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index 1832b2b893..d89ca95343 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -778,7 +778,7 @@ static NTSTATUS get_trust_creds(const struct winbindd_domain *domain, } if (!strupper_m(*machine_krb5_principal)) { - SAFE_FREE(machine_krb5_principal); + SAFE_FREE(*machine_krb5_principal); return NT_STATUS_INVALID_PARAMETER; } } -- cgit