]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Early talloc_free in an error case
authorVolker Lendecke <vl@samba.org>
Fri, 4 Oct 2024 11:39:18 +0000 (13:39 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 19 Nov 2024 18:11:29 +0000 (18:11 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/filename.c

index 89a5fe4f33842aed2c25643702bd1077666c7d3d..0c2e365c239dd5cf92dc095bfc5e79d8a9f3cd80 100644 (file)
@@ -1154,6 +1154,7 @@ next:
                                  '/',
                                  &target);
        if (ret != 0) {
+               TALLOC_FREE(symlink_err);
                return map_nt_error_from_unix(ret);
        }