From 5302db632660de44129d7cf48073bf52c9b27eca Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 24 May 2009 22:13:07 +0200 Subject: TALLOC_FREE happily lives with a NULL ptr. Tim, please check! Thanks, Volker --- source3/smbd/nttrans.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source3/smbd/nttrans.c') diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index d51c9a6d67..204cdf9e31 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1316,12 +1316,8 @@ static NTSTATUS copy_internals(TALLOC_CTX *ctx, goto out; } out: - if (smb_fname) { - TALLOC_FREE(smb_fname); - } - if (smb_fname_new) { - TALLOC_FREE(smb_fname_new); - } + TALLOC_FREE(smb_fname); + TALLOC_FREE(smb_fname_new); if (!NT_STATUS_IS_OK(status)) { DEBUG(3,("copy_internals: Error %s copy file %s to %s\n", nt_errstr(status), oldname, newname)); -- cgit