static int
file_free(struct archive *a, void *client_data)
{
- struct write_fd_data *mine = (struct write_fd_data *)client_data;
-
(void)a; /* UNUSED */
- if (mine == NULL)
- return (ARCHIVE_OK);
- free(mine);
+ free(client_data);
return (ARCHIVE_OK);
}
static int
file_free(struct archive *a, void *client_data)
{
- struct write_FILE_data *mine = client_data;
-
(void)a; /* UNUSED */
- if (mine == NULL)
- return (ARCHIVE_OK);
- free(mine);
+ free(client_data);
return (ARCHIVE_OK);
}
static int
memory_write_free(struct archive *a, void *client_data)
{
- struct write_memory_data *mine;
(void)a; /* UNUSED */
- mine = client_data;
- if (mine == NULL)
- return (ARCHIVE_OK);
- free(mine);
+ free(client_data);
return (ARCHIVE_OK);
}