/pidgin/main: 6ba4221e46cc: http: fix leak of response_buffer in...
dequis
dx at dxzone.com.ar
Sun Nov 22 16:37:35 EST 2015
Changeset: 6ba4221e46cc586e4dcc4cff274a1d175fa1bc55
Author: dequis <dx at dxzone.com.ar>
Date: 2015-11-22 18:29 -0300
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/6ba4221e46cc
Description:
http: fix leak of response_buffer in _purple_http_recv_loopbody
diffstat:
libpurple/http.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff --git a/libpurple/http.c b/libpurple/http.c
--- a/libpurple/http.c
+++ b/libpurple/http.c
@@ -1169,6 +1169,7 @@ static gboolean _purple_http_recv_loopbo
gchar *buffer = g_string_free(hc->response_buffer, FALSE);
hc->response_buffer = NULL;
_purple_http_recv_body(hc, buffer, buffer_len);
+ g_free(buffer);
}
if (!hc->headers_got)
return got_anything;
More information about the Commits
mailing list