Fix warning 'dereference after null'

This commit is contained in:
twinaphex 2016-09-23 02:05:12 +02:00
parent 4137d33e46
commit dac5b1aabd

View File

@ -346,10 +346,16 @@ static int file_archive_decompress_data_to_file(
}
end:
handle->backend->stream_free(handle->stream);
if (handle && handle->data)
free(handle->data);
if (handle)
{
if (handle->backend)
handle->backend->stream_free(handle->stream);
if (handle->data)
free(handle->data);
}
return ret;
}