/pidgin/main: 6ba4221e46cc: http: fix leak of response_buffer in...

dequis <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 6ba4221e46cc586e4dcc4cff274a1d175fa1bc55
Author:	 dequis <[email protected]>
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;

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.