diff options
-rw-r--r-- | source3/smbd/reply.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index c0a2e23c3d..5be086f749 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2029,6 +2029,7 @@ NTSTATUS unlink_internals(connection_struct *conn, uint32 dirtype, status = check_name(conn, fname); if (!NT_STATUS_IS_OK(status)) { + CloseDir(dir_hnd); return status; } |