From ed68f75b676a6b1d08f9668d29ff6d09f558fbe6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 25 Nov 2012 14:19:32 +0000 Subject: s3: Do not free a string where we should not Reviewed by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Mon Nov 26 22:03:05 CET 2012 on sn-devel-104 --- source3/winbindd/winbindd_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index af4684950a..e3406a5858 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -1192,7 +1192,7 @@ NTSTATUS resolve_alias_to_username( TALLOC_CTX *mem_ctx, if ( (upper_name = SMB_STRDUP(alias)) == NULL ) return NT_STATUS_NO_MEMORY; if (!strupper_m(upper_name)) { - SAFE_FREE(alias); + SAFE_FREE(upper_name); return NT_STATUS_INVALID_PARAMETER; } -- cgit