diff options
author | James Peach <jpeach@apple.com> | 2007-10-15 13:59:37 -0700 |
---|---|---|
committer | James Peach <jpeach@samba.org> | 2007-12-19 22:19:55 -0800 |
commit | d2a9630a8b239118e7fc4b9dcedd860e6b7574f1 (patch) | |
tree | e6b23025f33e34b66feb3de7ef6d093f547909cc /source3 | |
parent | e3bb148b941e67b5caea3db2c8ef9efc984598fa (diff) | |
download | samba-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')
-rw-r--r-- | source3/smbd/files.c | 5 |
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); } |