From 61e8c5949a50665158bdfd1e7624a5ad27d34a13 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 1 Jun 2011 12:12:26 -0700 Subject: TALLOC_FREE already checks for null. --- source3/smbd/open.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 5c92880668..373c0b3c42 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2172,9 +2172,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, open_access_mask); if (!NT_STATUS_IS_OK(fsp_open)) { - if (lck != NULL) { - TALLOC_FREE(lck); - } + TALLOC_FREE(lck); return fsp_open; } -- cgit