From e27a85d3352485455f8431b5d873d31087f867c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Sat, 17 Sep 2016 21:08:59 -0300 Subject: [PATCH] (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. --- tasks/task_content.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/task_content.c b/tasks/task_content.c index 236f759def..157f9477b9 100644 --- a/tasks/task_content.c +++ b/tasks/task_content.c @@ -525,6 +525,9 @@ error: if (handle->data) free(handle->data); + handle->stream = NULL; + handle->data = NULL; + return false; }