1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

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
This commit is contained in:
Richard Sharpe 2013-07-17 16:29:39 -07:00 committed by Jeremy Allison
parent 9b58da9866
commit 7420574c74

View File

@ -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;
}