summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-09 11:40:08 +0200
committerVolker Lendecke <vl@samba.org>2009-04-11 11:06:21 +0200
commit5fc9ca93f3f7f00198478b333d8e4ee036165121 (patch)
tree93408b79a62d50d39981e172d2af676a393e2b56 /source3
parentea6094d2cbb6d96baa5db0a1cb3fdbc7f58d73e2 (diff)
downloadsamba-5fc9ca93f3f7f00198478b333d8e4ee036165121.tar.gz
samba-5fc9ca93f3f7f00198478b333d8e4ee036165121.tar.bz2
samba-5fc9ca93f3f7f00198478b333d8e4ee036165121.zip
Fix a memleak in an unlikely error path in change_notify_create()
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/notify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index dc1599b462..a17afc7dee 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -211,6 +211,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;
}