mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s3: lib: Fix missing TALLOC_FREE in error code path.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14441 Reported by Alexander Pyhalov <apyhalov@gmail.com> Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Jul 14 07:42:54 UTC 2020 on sn-devel-184
This commit is contained in:
parent
965d188800
commit
aa4d135710
@ -106,7 +106,7 @@ static char *get_user_home_dir(TALLOC_CTX *mem_ctx)
|
||||
}
|
||||
len = strnlen(szPath, PATH_MAX);
|
||||
if (len >= PATH_MAX) {
|
||||
return NULL;
|
||||
goto done;
|
||||
}
|
||||
out = talloc_strdup(mem_ctx, szPath);
|
||||
goto done;
|
||||
|
Loading…
x
Reference in New Issue
Block a user