diff options
author | Brendan Taylor <whateley@gmail.com> | 2010-10-06 08:38:58 -0600 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2010-10-11 23:04:10 -0400 |
commit | 5ed250ef5aafaaa578db68deae228f0af9cbda14 (patch) | |
tree | 4759e5012791a562307e4860882c133eb5653918 /src/cookie-jar.c | |
parent | 2ab821580e64408dd290c97aac9d80733979d856 (diff) |
fix a memory leak in the cookie jar
Diffstat (limited to 'src/cookie-jar.c')
-rw-r--r-- | src/cookie-jar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cookie-jar.c b/src/cookie-jar.c index 875fdec..4bb1925 100644 --- a/src/cookie-jar.c +++ b/src/cookie-jar.c @@ -161,6 +161,8 @@ changed(SoupCookieJar *jar, SoupCookie *old_cookie, SoupCookie *new_cookie) { /* try it again; older cookie daemons closed the connection after each request */ if(!result) result = do_socket_request(uzbl_jar, s->str, s->len+1); + + g_free(result); } else { g_string_append_printf(s, " '%s' '%s' '%s' '%s=%s'", scheme, new_cookie->domain, new_cookie->path, new_cookie->name, new_cookie->value); |