summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/smbd/notify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/smbd/notify.c b/source/smbd/notify.c
index e79cf56abca..5aa85b41dc5 100644
--- a/source/smbd/notify.c
+++ b/source/smbd/notify.c
@@ -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;
}