From da57b9a0eb72a685e6aacdb67c6780fddada4884 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 2 Aug 2011 16:58:26 -0500 Subject: [PATCH] sierra: fix possible double-free Need to reset password to NULL after freeing it. --- plugins/mm-modem-sierra-gsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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