mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3: mdssvc: Correctly disconnect the VFS connection inside the mds_ctx destructor.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14809 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
6248eab510
commit
b4d8c62c4e
@ -1569,6 +1569,11 @@ static int mds_ctx_destructor_cb(struct mds_ctx *mds_ctx)
|
||||
}
|
||||
TALLOC_FREE(mds_ctx->ino_path_map);
|
||||
|
||||
if (mds_ctx->conn != NULL) {
|
||||
SMB_VFS_DISCONNECT(mds_ctx->conn);
|
||||
conn_free(mds_ctx->conn);
|
||||
}
|
||||
|
||||
ZERO_STRUCTP(mds_ctx);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user