From 7420574c74be1f5ea308c8ebfc572683d1e755d4 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Wed, 17 Jul 2013 16:29:39 -0700 Subject: Fix memory leak in error code path. Reviewed-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Jul 18 03:22:37 CEST 2013 on sn-devel-104 --- source3/smbd/notify_inotify.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit