git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
420b864
)
Fix a memleak in an unlikely error path in change_notify_create()
author
Volker Lendecke
<vl@samba.org>
Sat, 11 Apr 2009 20:54:06 +0000
(13:54 -0700)
committer
Michael Adam
<obnox@samba.org>
Wed, 22 Apr 2009 09:07:14 +0000
(11:07 +0200)
source/smbd/notify.c
patch
|
blob
|
history
diff --git
a/source/smbd/notify.c
b/source/smbd/notify.c
index 55a5e69c8a3953f11492253673ec54684a4fb7b4..d1cd8dfe6971e5b45adf5bad2e3b2603a893adc1 100644
(file)
--- a/
source/smbd/notify.c
+++ b/
source/smbd/notify.c
@@
-231,6
+231,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;
}