From ef4a39c61332a9b627be544b7f80595f412d3016 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 21 Feb 2013 03:07:21 +0200 Subject: gps.c: Fixed a small memory leak osm_gps_map_get_default_cache_directory() uses stdc:strdup to allocate memory for the returned string. Lets try to free the memory pointed by 'cachebasedir'. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- gps.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gps.c') diff --git a/gps.c b/gps.c index 899db81c1..494eed52d 100644 --- a/gps.c +++ b/gps.c @@ -187,6 +187,7 @@ OsmGpsMap *init_map(void) osm_gps_map_layer_add(OSM_GPS_MAP(map), osd); g_object_unref(G_OBJECT(osd)); free((void*)cachebasedir); + free((void*)cachedir); return map; } -- cgit v1.2.3-70-g09d2