aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_read_open_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_read_open_file.c')
-rw-r--r--libarchive/archive_read_open_file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libarchive/archive_read_open_file.c b/libarchive/archive_read_open_file.c
index bfe933bf32e9..101dae6cd9e3 100644
--- a/libarchive/archive_read_open_file.c
+++ b/libarchive/archive_read_open_file.c
@@ -174,8 +174,7 @@ file_close(struct archive *a, void *client_data)
struct read_FILE_data *mine = (struct read_FILE_data *)client_data;
(void)a; /* UNUSED */
- if (mine->buffer != NULL)
- free(mine->buffer);
+ free(mine->buffer);
free(mine);
return (ARCHIVE_OK);
}