]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: lib: Fix missing TALLOC_FREE in error code path.
authorJeremy Allison <jra@samba.org>
Mon, 13 Jul 2020 17:08:47 +0000 (10:08 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 14 Jul 2020 07:42:54 +0000 (07:42 +0000)
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

lib/util/util_paths.c

index 72cc0aab8de566ba03636a828b74b1c7715285d2..8ac85460fba1267f6ed66bdb6d4bcb0345e2a5b1 100644 (file)
@@ -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;