[ModemManager] Free up a couple of dangling GErrors.
- From: Nathan Williams <njw google com>
- To: networkmanager-list gnome org
- Subject: [ModemManager] Free up a couple of dangling GErrors.
- Date: Tue, 29 Nov 2011 11:33:24 -0500
After my previous change I went around looking for GError objects that
were being allocated but not freed, and turned up these two.
- Nathan
From e6325d10bf999e7f95f57fc27d5cad4c70353adb Mon Sep 17 00:00:00 2001
From: Nathan Williams <njw chromium org>
Date: Tue, 29 Nov 2011 11:31:37 -0500
Subject: [PATCH] Free up a couple of dangling GErrors.
Change-Id: I4f07e7e08bcbfc116114191c759cc0af4bb8ea23
---
src/mm-generic-cdma.c | 1 +
src/mm-generic-gsm.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mm-generic-cdma.c b/src/mm-generic-cdma.c
index 378555b..bde163f 100644
--- a/src/mm-generic-cdma.c
+++ b/src/mm-generic-cdma.c
@@ -2169,6 +2169,7 @@ simple_connect (MMModemSimple *simple,
}
simple_state_machine (MM_MODEM (simple), error, info);
+ g_error_free (error);
}
static void
diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c
index 8725c1b..3ec0a7c 100644
--- a/src/mm-generic-gsm.c
+++ b/src/mm-generic-gsm.c
@@ -4753,6 +4753,7 @@ sms_get (MMModemGsmSms *modem,
callback (modem, properties, error, user_data);
if (properties != NULL)
g_hash_table_unref (properties);
+ g_error_free (error);
return;
}
--
1.7.3.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]