[libgdata] core: Fix a memory leak in the URI handling code



commit ac7299c52faed679d7135ed72861b35b329a6ad2
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Dec 10 01:52:54 2010 +0000

    core: Fix a memory leak in the URI handling code

 gdata/gdata-service.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 7f2a85b..8b3dfd4 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -2188,6 +2188,7 @@ _gdata_service_build_uri (gboolean force_http, const gchar *format, ...)
 		fixed_uri = g_strdup_printf ("%s:%s", scheme, pieces[1]);
 
 		g_strfreev (pieces);
+		g_free (built_uri);
 
 		return fixed_uri;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]