aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-08-02 16:58:26 -0500
committerDan Williams <dcbw@redhat.com>2011-08-02 21:57:02 -0500
commitda57b9a0eb72a685e6aacdb67c6780fddada4884 (patch)
tree58a15b4e80a8b48daacc7bc685efbc7111a4577d
parenteb2d14ab4a72d437d7fceb1bdddd1417be17c5c8 (diff)
sierra: fix possible double-free
Need to reset password to NULL after freeing it.
-rw-r--r--plugins/mm-modem-sierra-gsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mm-modem-sierra-gsm.c b/plugins/mm-modem-sierra-gsm.c
index 5352761f..b5cf2f55 100644
--- a/plugins/mm-modem-sierra-gsm.c
+++ b/plugins/mm-modem-sierra-gsm.c
@@ -639,7 +639,7 @@ clear_user_pass (MMModemSierraGsm *self)
g_free (priv->username);
priv->username = NULL;
g_free (priv->password);
- priv->username = NULL;
+ priv->password = NULL;
}
static void