Diff between 1f8d0d30e1e49889c98cfd6dfb831d1eae914937 and c112d459c6c952e1c63941fb7a6ab38766cd4870

Changed Files

File Additions Deletions Status
profiles/health/hdp.c +1 -1 modified

Full Patch

diff --git a/profiles/health/hdp.c b/profiles/health/hdp.c
index 44448c4..c15f06a 100644
--- a/profiles/health/hdp.c
+++ b/profiles/health/hdp.c
@@ -609,10 +609,10 @@ static DBusMessage *channel_acquire_continue(struct hdp_tmp_dc_data *data,
 					data, hdp_tmp_dc_data_destroy, &gerr))
 		return NULL;
 
-	hdp_tmp_dc_data_unref(data);
 	reply = g_dbus_create_error(data->msg, ERROR_INTERFACE ".HealthError",
 					"Cannot reconnect: %s", gerr->message);
 	g_error_free(gerr);
+	hdp_tmp_dc_data_unref(data);
 
 	return reply;
 }