diff options
author | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-11-18 08:50:36 +0000 |
---|---|---|
committer | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-11-18 08:50:36 +0000 |
commit | abf985bf534c7e8906d62865845911f8d29e40e6 (patch) | |
tree | 294d983f4cb3d69c7a7324b6ab126cdb930bb782 /navit/map | |
parent | 6c1062c27587b7e7ed4c295c0ae7a4828da346e3 (diff) | |
download | navit-abf985bf534c7e8906d62865845911f8d29e40e6.tar.gz |
Fix:map/csv:Few memleaks removed.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5275 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/map')
-rw-r--r-- | navit/map/csv/csv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/navit/map/csv/csv.c b/navit/map/csv/csv.c index 7d48a9854..54a988ae6 100644 --- a/navit/map/csv/csv.c +++ b/navit/map/csv/csv.c @@ -148,6 +148,7 @@ save_map_csv(struct map_priv *m) if(fprintf(fp,"%s\n", csv_line)<0) { ferr = 1; } + g_free(csv_line); } if(fclose(fp)) { @@ -176,6 +177,7 @@ map_destroy_csv(struct map_priv *m) g_hash_table_destroy(m->qitem_hash); quadtree_destroy(m->tree_root); g_free(m->filename); + g_free(m->charset); g_free(m->attr_types); g_free(m); } @@ -465,6 +467,8 @@ static void quadtree_item_free_do(void *data) attr = attr_it->data; attr_free(attr); } + g_list_free(qdata->attr_list); + g_free(qdata->item); g_free(qitem->data); } g_free(data); |