From aa4d135710e0fdcf92f522b3c6228717105c0775 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 13 Jul 2020 10:08:47 -0700 Subject: s3: lib: Fix missing TALLOC_FREE in error code path. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14441 Reported by Alexander Pyhalov Signed-off-by: Jeremy Allison Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Tue Jul 14 07:42:54 UTC 2020 on sn-devel-184 --- lib/util/util_paths.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/util_paths.c b/lib/util/util_paths.c index 72cc0aab8de..8ac85460fba 100644 --- a/lib/util/util_paths.c +++ b/lib/util/util_paths.c @@ -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; -- cgit v1.2.1