summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/filename.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index cf6613aa71..824c32867a 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -515,6 +515,7 @@ NTSTATUS unix_convert(connection_struct *conn,
if (tmp == NULL) {
DEBUG(0, ("malloc failed\n"));
result = NT_STATUS_NO_MEMORY;
+ goto fail;
}
SAFE_FREE(name);
name = tmp;