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