29 lines
940 B
Diff
29 lines
940 B
Diff
From 11872c12358cb3ec1491c5309280f548d04aa00e Mon Sep 17 00:00:00 2001
|
|
From: Richard Hughes <richard@hughsie.com>
|
|
Date: Tue, 15 Mar 2011 11:08:58 +0000
|
|
Subject: [PATCH] Fix a crash where the error code was pointing to freed memory. Fixes rh#684464
|
|
|
|
---
|
|
src/pk-transaction.c | 5 +++--
|
|
1 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/pk-transaction.c b/src/pk-transaction.c
|
|
index 5dd4577..34ded99 100644
|
|
--- a/src/pk-transaction.c
|
|
+++ b/src/pk-transaction.c
|
|
@@ -1874,8 +1874,9 @@ pk_transaction_set_running (PkTransaction *transaction)
|
|
/* set proxy */
|
|
ret = pk_transaction_set_session_state (transaction, &error);
|
|
if (!ret) {
|
|
- g_debug ("failed to set the session state (non-fatal): %s", error->message);
|
|
- g_error_free (error);
|
|
+ g_debug ("failed to set the session state (non-fatal): %s",
|
|
+ error->message);
|
|
+ g_clear_error (&error);
|
|
}
|
|
|
|
/* we are no longer waiting, we are setting up */
|
|
--
|
|
1.6.1
|
|
|