mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
(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:
parent
c08650f1f9
commit
e27a85d335
@ -525,6 +525,9 @@ error:
|
||||
if (handle->data)
|
||||
free(handle->data);
|
||||
|
||||
handle->stream = NULL;
|
||||
handle->data = NULL;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user