Blame SOURCES/0010-coverity-Free-resource-leaking-vars-def-42-41-38-37.patch

91b162
From f092a94a3676479b472c7c7fa3a8ea5c62baf7c9 Mon Sep 17 00:00:00 2001
91b162
From: Martin Kutlak <mkutlak@redhat.com>
91b162
Date: Mon, 20 Aug 2018 15:25:38 +0200
91b162
Subject: [PATCH] coverity: Free resource leaking vars #def[42,41,38,37]
91b162
91b162
The variables were used for their purpose, so we can free them.
91b162
91b162
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
91b162
---
91b162
 src/plugins/mantisbt.c | 7 +++++++
91b162
 1 file changed, 7 insertions(+)
91b162
91b162
diff --git a/src/plugins/mantisbt.c b/src/plugins/mantisbt.c
91b162
index 2504f9ad..f2542afd 100644
91b162
--- a/src/plugins/mantisbt.c
91b162
+++ b/src/plugins/mantisbt.c
91b162
@@ -862,6 +862,7 @@ mantisbt_search_by_abrt_hash(mantisbt_settings_t *settings, const char *abrt_has
91b162
     }
91b162
 
91b162
     GList *ids = response_get_main_ids_list(result->mr_body);
91b162
+    mantisbt_result_free(result);
91b162
 
91b162
     return ids;
91b162
 }
91b162
@@ -906,6 +907,7 @@ mantisbt_search_duplicate_issues(mantisbt_settings_t *settings, const char *cate
91b162
     }
91b162
 
91b162
     GList *ids = response_get_main_ids_list(result->mr_body);
91b162
+    mantisbt_result_free(result);
91b162
 
91b162
     return ids;
91b162
 }
91b162
@@ -1101,11 +1103,16 @@ mantisbt_get_project_id_from_name(mantisbt_settings_t *settings)
91b162
     soap_node_add_child_node(req->sr_method, "project_name", SOAP_STRING, settings->m_project);
91b162
 
91b162
     mantisbt_result_t *result = mantisbt_soap_call(settings, req);
91b162
+    soap_request_free(req);
91b162
 
91b162
     if (result->mr_http_resp_code != 200)
91b162
+    {
91b162
+        mantisbt_result_free(result);
91b162
         error_msg_and_die(_("Failed to get project id from name"));
91b162
+    }
91b162
 
91b162
     settings->m_project_id = response_get_return_value_as_string(result->mr_body);
91b162
+    mantisbt_result_free(result);
91b162
 
91b162
     return;
91b162
 }
91b162
-- 
91b162
2.17.1
91b162