git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13cf0a
)
Fix a memleak in an unlikely error path in change_notify_create()
author
Volker Lendecke
<vl@samba.org>
Thu, 9 Apr 2009 09:40:08 +0000
(11:40 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Wed, 15 Apr 2009 07:08:21 +0000
(09:08 +0200)
(cherry picked from commit
fb8707e2c2d1657294b0660064e1b16590d1ca6c
)
source3/smbd/notify.c
patch
|
blob
|
history
diff --git
a/source3/smbd/notify.c
b/source3/smbd/notify.c
index 8ceeaf5f5588ae4e5d5c091a3379ce944c00bc88..059101cc5bbddc9084d3c0ea055511909939c193 100644
(file)
--- a/
source3/smbd/notify.c
+++ b/
source3/smbd/notify.c
@@
-209,6
+209,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;
}