aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Paweł Zuzelski <pawelz@pld-linux.org>2010-01-10 21:20:20 +0100
committerGravatar Paweł Zuzelski <pawelz@pld-linux.org>2010-01-10 21:20:20 +0100
commit8a6ceac5f1853afe72064dda42cc8bb6a64b4b41 (patch)
tree407b2f7c94dce13e6765a0ede5bdb33bbdcb3a7c /src
parente1806cf413fbafa7dfef273ca4ced37e1918d080 (diff)
fix double free in authentication_handler
Don't g_free username and password as we don't allocate memory for these strings.
Diffstat (limited to 'src')
-rw-r--r--src/uzbl-core.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/uzbl-core.c b/src/uzbl-core.c
index cd907f4..462feb5 100644
--- a/src/uzbl-core.c
+++ b/src/uzbl-core.c
@@ -2357,13 +2357,9 @@ void handle_authentication (SoupSession *session, SoupMessage *msg, SoupAuth *au
}
/* If stdout was correct (contains exactly two lines of text) do
- * authenticate. Otherwise fail. */
- if (number_of_endls == 2) {
+ * authenticate. */
+ if (number_of_endls == 2)
soup_auth_authenticate(auth, username, password);
- } else {
- g_free(username);
- g_free(password);
- }
soup_session_unpause_message(session, msg);