From e7d41f6ea7dc348da8fb434ca2e3407365ec7299 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 27 Sep 2017 23:54:31 +0200 Subject: [PATCH] Cleanup --- tasks/task_content.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tasks/task_content.c b/tasks/task_content.c index b6fd4bee55..2acf49152f 100644 --- a/tasks/task_content.c +++ b/tasks/task_content.c @@ -492,7 +492,6 @@ static bool content_file_init_extract( msg_hash_to_str( MSG_FAILED_TO_EXTRACT_CONTENT_FROM_COMPRESSED_FILE), temp_content); - free(new_path); free(temp_content); free(str); goto error; @@ -504,10 +503,7 @@ static bool content_file_init_extract( if (!string_list_append(content_ctx->temporary_content, new_path, *attr)) - { - free(new_path); goto error; - } free(new_path); } @@ -516,6 +512,7 @@ static bool content_file_init_extract( return true; error: + free(new_path); return false; } #endif