From fb8707e2c2d1657294b0660064e1b16590d1ca6c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 9 Apr 2009 11:40:08 +0200 Subject: [PATCH] Fix a memleak in an unlikely error path in change_notify_create() --- source3/smbd/notify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index 8ceeaf5f558..059101cc5bb 100644 --- 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; } -- 2.11.4.GIT