From 85e3e5aecdbf2d4af91abd220842afe1f916c2ac Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 8 Jun 2023 10:14:18 +0200 Subject: [PATCH] smbclient: Fix fd leak with "showacls;ls" Bug: https://bugzilla.samba.org/show_bug.cgi?id=15391 Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Jun 8 16:55:14 UTC 2023 on atb-devel-224 (cherry picked from commit 5c52f71c0d0e162dcbf42378357313035efa860f) --- source3/client/client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/client/client.c b/source3/client/client.c index 8e29224918d..c4d309958cd 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -626,6 +626,7 @@ static NTSTATUS display_finfo(struct cli_state *cli_state, struct file_info *fin display_sec_desc(sd); } TALLOC_FREE(sd); + cli_close(targetcli, fnum); } TALLOC_FREE(afname); } -- 2.30.2