/pidgin/main: e0ca691299e6: Fix a memory leak on the http request

Jorge Villase?or salinasv at pidgin.im
Sun Jul 26 19:45:02 EDT 2015


Changeset: e0ca691299e6ce9878c78248d7eed8b187dd2abc
Author:	 Jorge Villase?or <salinasv at pidgin.im>
Date:	 2015-07-26 16:43 -0700
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/e0ca691299e6

Description:

Fix a memory leak on the http request

Patch from jgeboski

Fixes #16722

diffstat:

 libpurple/http.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff --git a/libpurple/http.c b/libpurple/http.c
--- a/libpurple/http.c
+++ b/libpurple/http.c
@@ -2452,6 +2452,8 @@ static void purple_http_request_free(Pur
 	purple_http_headers_free(request->headers);
 	purple_http_cookie_jar_unref(request->cookie_jar);
 	purple_http_keepalive_pool_unref(request->keepalive_pool);
+	g_free(request->method);
+	g_free(request->contents);
 	g_free(request->url);
 	g_free(request);
 }



More information about the Commits mailing list