summaryrefslogtreecommitdiffstats
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
commit9fead46b54519b3df78a869dbc99207046587d6a (patch)
tree0bb25d978d0d3e1d6f7f65762f4835f0860f9138
parent6d765e0de523211a2d0b43a2c4c4117f5f0c662f (diff)
downloadsamba-9fead46b54519b3df78a869dbc99207046587d6a.tar.gz
samba-9fead46b54519b3df78a869dbc99207046587d6a.tar.xz
samba-9fead46b54519b3df78a869dbc99207046587d6a.zip
Release per-fsp data on file closure.
-rw-r--r--source/smbd/files.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/smbd/files.c b/source/smbd/files.c
index 179963dae9b..95f01b88ce1 100644
--- a/source/smbd/files.c
+++ b/source/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);
}