]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix a memleak in an unlikely error path in change_notify_create()
authorVolker Lendecke <vl@samba.org>
Sat, 11 Apr 2009 20:54:06 +0000 (13:54 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 11 Apr 2009 20:54:06 +0000 (13:54 -0700)
source/smbd/notify.c

index e79cf56abcac672e5f1a8c5c3162c886d88580a6..5aa85b41dc50f78403e7aca9e9ec38f130346bf9 100644 (file)
@@ -234,6 +234,7 @@ NTSTATUS change_notify_create(struct files_struct *fsp, uint32 filter,
        if (asprintf(&fullpath, "%s/%s", fsp->conn->connectpath,
                     fsp->fsp_name) == -1) {
                DEBUG(0, ("asprintf failed\n"));
+               TALLOC_FREE(fsp->notify);
                return NT_STATUS_NO_MEMORY;
        }