(task_content.c) Fix possible double free()

content_zip_file_decompressed_handle() didn't set the handler's data
member to NULL after freeing on error. That causes problem when the function fails and
content_zip_file_decompressed() tries to free it afterwards.
This commit is contained in:
Higor Eurípedes 2016-09-17 21:08:59 -03:00
parent c08650f1f9
commit e27a85d335

View File

@ -525,6 +525,9 @@ error:
if (handle->data)
free(handle->data);
handle->stream = NULL;
handle->data = NULL;
return false;
}