summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJames Peach <jpeach@apple.com>2007-10-15 13:59:37 -0700
committerJames Peach <jpeach@samba.org>2007-12-19 22:19:55 -0800
commitd2a9630a8b239118e7fc4b9dcedd860e6b7574f1 (patch)
treee6b23025f33e34b66feb3de7ef6d093f547909cc /source3/smbd
parente3bb148b941e67b5caea3db2c8ef9efc984598fa (diff)
downloadsamba-d2a9630a8b239118e7fc4b9dcedd860e6b7574f1.tar.gz
samba-d2a9630a8b239118e7fc4b9dcedd860e6b7574f1.tar.bz2
samba-d2a9630a8b239118e7fc4b9dcedd860e6b7574f1.zip
Release per-fsp data on file closure.
(This used to be commit 9fead46b54519b3df78a869dbc99207046587d6a)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/files.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 179963dae9..95f01b88ce 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -460,6 +460,11 @@ void file_free(files_struct *fsp)
ZERO_STRUCT(fsp_fi_cache);
}
+ /* Drop all remaining extensions. */
+ while (fsp->vfs_extension) {
+ vfs_remove_fsp_extension(fsp->vfs_extension->owner, fsp);
+ }
+
SAFE_FREE(fsp);
}