Release per-fsp data on file closure.
authorJames Peach <jpeach@apple.com>
Mon, 15 Oct 2007 20:59:37 +0000 (13:59 -0700)
committerJames Peach <jpeach@samba.org>
Thu, 20 Dec 2007 06:19:55 +0000 (22:19 -0800)
(This used to be commit 9fead46b54519b3df78a869dbc99207046587d6a)

source3/smbd/files.c

index 179963dae9b5250995608386b2dc5b17cb98362f..95f01b88ce185945d31a753125192fea609d2c31 100644 (file)
@@ -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);
 }