[network-manager-pptp] auth-dialog: fix memory leak in ea9812bbec074c35f600104397a0414b55057b46
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-pptp] auth-dialog: fix memory leak in ea9812bbec074c35f600104397a0414b55057b46
- Date: Mon, 19 Mar 2012 15:59:53 +0000 (UTC)
commit 96df5d659997d764653a67fd21e56d96a1456032
Author: Dan Williams <dcbw redhat com>
Date: Mon Mar 19 10:59:02 2012 -0500
auth-dialog: fix memory leak in ea9812bbec074c35f600104397a0414b55057b46
auth-dialog/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 0ee557f..21df07f 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -158,15 +158,15 @@ get_secrets (const char *vpn_uuid,
keyfile_print_stdout (keyfile);
g_key_file_unref (keyfile);
goto out;
- }
- if (allow_interaction == FALSE ||
- (!retry && pw && !(pw_flags & NM_SETTING_SECRET_FLAG_NOT_SAVED))) {
+ } else if ( allow_interaction == FALSE
+ || (!retry && pw && !(pw_flags & NM_SETTING_SECRET_FLAG_NOT_SAVED))) {
/* If interaction isn't allowed, just return existing secrets.
* Also, don't ask the user if we don't need a new password (ie, !retry),
* we have an existing PW, and the password is saved.
*/
*out_pw = pw;
+ g_free (prompt);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]