From 02b874b245cf59249fb90b163ec884e2f2c4cdbe Mon Sep 17 00:00:00 2001 From: Nikola Pajkovsky Date: Tue, 17 Aug 2010 15:09:04 +0200 Subject: fix double free when add_comment() fails it's always fail in xmlrpc. So we should use throw_xml_fault() instead of throw_if_xml_fault_occurred() Signed-off-by: Nikola Pajkovsky --- lib/plugins/Bugzilla.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/plugins') diff --git a/lib/plugins/Bugzilla.cpp b/lib/plugins/Bugzilla.cpp index e494f082..55a957be 100644 --- a/lib/plugins/Bugzilla.cpp +++ b/lib/plugins/Bugzilla.cpp @@ -902,7 +902,7 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData, { free(full_dsc); bug_info_destroy(&bz); - throw_if_xml_fault_occurred(&bz_server.env); + throw_xml_fault(&bz_server.env); } free(full_dsc); } -- cgit