From 3bda2c2bc34fa21ef143f068a4f4f3feb7eb48d5 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 2 Dec 2012 17:39:22 +0000 Subject: Fixed minor memory leak. --- lib/oauth2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/oauth2.c') diff --git a/lib/oauth2.c b/lib/oauth2.c index 87965d04..d3f6bc09 100644 --- a/lib/oauth2.c +++ b/lib/oauth2.c @@ -102,7 +102,7 @@ static void oauth2_access_token_done( struct http_request *req ) { struct oauth2_access_token_data *cb_data = req->data; char *atoken = NULL, *rtoken = NULL; - const char *content_type; + char *content_type; if( getenv( "BITLBEE_DEBUG" ) && req->reply_body ) printf( "%s\n", req->reply_body ); @@ -131,6 +131,7 @@ static void oauth2_access_token_done( struct http_request *req ) printf( "Extracted atoken=%s rtoken=%s\n", atoken, rtoken ); cb_data->func( cb_data->data, atoken, rtoken ); + g_free( content_type ); g_free( atoken ); g_free( rtoken ); g_free( cb_data ); -- cgit v1.2.3