From db68915a4eaaedede9dac77c6c748718ce156139 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 --- source3/winbindd/winbindd_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 517a3028ff..af4684950a 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -1114,7 +1114,7 @@ NTSTATUS resolve_username_to_alias( TALLOC_CTX *mem_ctx, if ( (upper_name = SMB_STRDUP(name)) == NULL ) return NT_STATUS_NO_MEMORY; if (!strupper_m(upper_name)) { - SAFE_FREE(name); + SAFE_FREE(upper_name); return NT_STATUS_INVALID_PARAMETER; } -- cgit