summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-11-25 14:19:32 +0000
committerJeremy Allison <jra@samba.org>2012-11-26 11:14:15 -0800
commitdb68915a4eaaedede9dac77c6c748718ce156139 (patch)
tree1de685ef30a49d6e6fef144beb082414054b1013 /source3
parent994eec4d5861c0027b4f863baf095d95ce22c695 (diff)
downloadsamba-db68915a4eaaedede9dac77c6c748718ce156139.tar.gz
samba-db68915a4eaaedede9dac77c6c748718ce156139.tar.bz2
samba-db68915a4eaaedede9dac77c6c748718ce156139.zip
s3: Do not free a string where we should not
Reviewed by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_cache.c2
1 files changed, 1 insertions, 1 deletions
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;
}