summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sharpe <realrichardsharpe@gmail.com>2013-07-17 16:29:39 -0700
committerJeremy Allison <jra@samba.org>2013-07-18 03:22:37 +0200
commit7420574c74be1f5ea308c8ebfc572683d1e755d4 (patch)
tree8d3451def4baeec8719b4f3f7c3d2ea360cc3f65
parent9b58da986680a92b350f02cd31ff64f30fecd07c (diff)
downloadsamba-7420574c74be1f5ea308c8ebfc572683d1e755d4.tar.gz
samba-7420574c74be1f5ea308c8ebfc572683d1e755d4.tar.bz2
samba-7420574c74be1f5ea308c8ebfc572683d1e755d4.zip
Fix memory leak in error code path.
Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jul 18 03:22:37 CEST 2013 on sn-devel-104
-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;
}