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