From 96ed6b631fbe690ae6292b13a5a2e2478d932aca Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 11 Apr 2009 13:54:06 -0700 Subject: [PATCH] Fix a memleak in an unlikely error path in change_notify_create() (cherry picked from commit 7284b7bb226990abce91d40782bf4e592e2f7b4d) --- source/smbd/notify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/smbd/notify.c b/source/smbd/notify.c index 55a5e69c8a3..d1cd8dfe697 100644 --- 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; } -- 2.11.4.GIT