sierra: fix possible double-free
Need to reset password to NULL after freeing it.
This commit is contained in:
@@ -639,7 +639,7 @@ clear_user_pass (MMModemSierraGsm *self)
|
|||||||
g_free (priv->username);
|
g_free (priv->username);
|
||||||
priv->username = NULL;
|
priv->username = NULL;
|
||||||
g_free (priv->password);
|
g_free (priv->password);
|
||||||
priv->username = NULL;
|
priv->password = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user