I think there is a memory leak here ...

Richard Sharpe realrichardsharpe at gmail.com
Tue Jul 16 18:41:54 MDT 2013


Hi folks,

I think the following is needed:

diff --git a/source3/smbd/notify_inotify.c b/source3/smbd/notify_inotify.c
index 4e9a87e..efb659f 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;
        }


-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: notify_inotify.c.patch
Type: application/octet-stream
Size: 391 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130716/0019edd6/attachment.obj>


More information about the samba-technical mailing list