From: Volker Lendecke Date: Sat, 11 Apr 2009 20:54:06 +0000 (-0700) Subject: Fix a memleak in an unlikely error path in change_notify_create() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42a2678c2f78b3c9ff59c57eb8132fd3698b5710;p=thirdparty%2Fsamba.git Fix a memleak in an unlikely error path in change_notify_create() --- 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; }