summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/notify_inotify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/notify_inotify.c b/source3/smbd/notify_inotify.c
index 4e9a87e6f9..efb659f7c0 100644
--- a/source3/smbd/notify_inotify.c
+++ b/source3/smbd/notify_inotify.c
@@ -398,6 +398,7 @@ NTSTATUS inotify_watch(struct sys_notify_context *ctx,
if (w->path == NULL) {
inotify_rm_watch(in->fd, wd);
*filter = orig_filter;
+ TALLOC_FREE(w);
return NT_STATUS_NO_MEMORY;
}