From 114829698426988b46afb6ecd44f5eac3c527fd0 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 26 Oct 2015 17:30:35 +0100 Subject: [PATCH] xmlrpc.c: fix invalid unref operation --- coreapi/xmlrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/xmlrpc.c b/coreapi/xmlrpc.c index 5394fae3c..f2173e510 100644 --- a/coreapi/xmlrpc.c +++ b/coreapi/xmlrpc.c @@ -405,12 +405,12 @@ void linphone_xml_rpc_session_send_request(LinphoneXmlRpcSession *session, Linph uri = belle_generic_uri_parse(session->url); if (!uri) { ms_error("Could not send request, URL %s is invalid", session->url); - belle_sip_object_unref(uri); process_io_error_from_post_xml_rpc_request(request, NULL); return; } req = belle_http_request_create("POST", uri, belle_sip_header_content_type_create("text", "xml"), NULL); if (!req) { + belle_sip_object_unref(uri); process_io_error_from_post_xml_rpc_request(request, NULL); } content = linphone_content_new();