summaryrefslogtreecommitdiff
path: root/source3/smbd/files.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-31 14:42:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:36 -0500
commit2852ecc67ebded7758a07d8fb72eef53bfa1c63a (patch)
tree4c69630521ef333be31379e0433fb53fad37919a /source3/smbd/files.c
parentaccbfaa4c3ffe669cc29aac8a85c4144ad234e43 (diff)
downloadsamba-2852ecc67ebded7758a07d8fb72eef53bfa1c63a.tar.gz
samba-2852ecc67ebded7758a07d8fb72eef53bfa1c63a.tar.bz2
samba-2852ecc67ebded7758a07d8fb72eef53bfa1c63a.zip
r21092: Ok, that's the one that activates the Samba4 notify backend.
Now to clean up / fix lots of stuff. Volker (This used to be commit 9e7443fa1417c01be903b15073825dc4def78d99)
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r--source3/smbd/files.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 982de4c55f..fc1700de11 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -483,7 +483,10 @@ void file_free(files_struct *fsp)
fsp->fh->ref_count--;
}
- TALLOC_FREE(fsp->notify);
+ if (fsp->notify) {
+ notify_remove(fsp->conn->notify_ctx, fsp);
+ TALLOC_FREE(fsp->notify);
+ }
bitmap_clear(file_bmap, fsp->fnum - FILE_HANDLE_OFFSET);
files_used--;