diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-02-21 03:07:21 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-20 17:21:03 -0800 |
commit | ef4a39c61332a9b627be544b7f80595f412d3016 (patch) | |
tree | dbc5eaeb66e48b58ccd72f987bfecca8c7a9c0bb /gps.c | |
parent | 61698b9f55514a2a2f1dcb5f89bb4fd69c019f4b (diff) | |
download | subsurface-ef4a39c61332a9b627be544b7f80595f412d3016.tar.gz |
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 <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gps.c')
-rw-r--r-- | gps.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |