]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbclient: Fix fd leak with "showacls;ls"
authorVolker Lendecke <vl@samba.org>
Thu, 8 Jun 2023 08:14:18 +0000 (10:14 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 8 Jun 2023 16:55:14 +0000 (16:55 +0000)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=15391

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jun  8 16:55:14 UTC 2023 on atb-devel-224

source3/client/client.c

index 8e29224918d7ede465f9d24f8e6916d1386df2be..c4d309958cd77eee0c849a6bd177510dae89c734 100644 (file)
@@ -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);
        }