summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-08-14 09:27:59 +0000
committerStefan Metzmacher <metze@samba.org>2013-08-14 14:04:16 +0200
commit5f75814586f2d6f7c2dc8fd9342cb045c1f7e68c (patch)
tree02c3eccd14cb728fe35474bbcefccb1096717bdb /source3/winbindd
parent1b57fd180c2640598c13d2459a7c7a6f04708388 (diff)
downloadsamba-5f75814586f2d6f7c2dc8fd9342cb045c1f7e68c.tar.gz
samba-5f75814586f2d6f7c2dc8fd9342cb045c1f7e68c.tar.bz2
samba-5f75814586f2d6f7c2dc8fd9342cb045c1f7e68c.zip
winbind3: Fix an invalid free
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 <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Aug 14 14:04:16 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cm.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}