Don't free a NULL pointer.
This commit is contained in:
parent
0c3e4592a6
commit
1eb296a82c
@ -238,7 +238,8 @@ archive_compressor_none_finish(struct archive_write *a)
|
||||
if (a->client_closer != NULL)
|
||||
ret2 = (a->client_closer)(&a->archive, a->client_data);
|
||||
|
||||
free(state->buffer);
|
||||
if (state->buffer)
|
||||
free(state->buffer);
|
||||
free(state);
|
||||
a->compression_data = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user