server: Remove redundant NULL check before free() (found by Smatch).
diff --git a/server/mapping.c b/server/mapping.c
index 02f6d48..212af1b 100644
--- a/server/mapping.c
+++ b/server/mapping.c
@@ -196,7 +196,7 @@
error:
release_object( mapping->shared_file );
mapping->shared_file = NULL;
- if (buffer) free( buffer );
+ free( buffer );
return 0;
}
@@ -254,7 +254,7 @@
return 1;
error:
- if (sec) free( sec );
+ free( sec );
release_object( fd );
set_error( STATUS_INVALID_FILE_FOR_SECTION );
return 0;