diff options
author | Volker Lendecke <vl@samba.org> | 2009-04-09 11:40:08 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-04-11 11:06:21 +0200 |
commit | 5fc9ca93f3f7f00198478b333d8e4ee036165121 (patch) | |
tree | 93408b79a62d50d39981e172d2af676a393e2b56 /source3/smbd | |
parent | ea6094d2cbb6d96baa5db0a1cb3fdbc7f58d73e2 (diff) | |
download | samba-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/smbd')
-rw-r--r-- | source3/smbd/notify.c | 1 |
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; } |