FIX:osm2navit:little memory leak
authorzaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 28 Oct 2008 00:40:21 +0000 (00:40 +0000)
committerzaxl <zaxl@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 28 Oct 2008 00:40:21 +0000 (00:40 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1582 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/osm2navit.c

index eaa753b..dac81e7 100644 (file)
@@ -2240,6 +2240,7 @@ write_aux_tiles(FILE *out, FILE *dir_out, int compression_level, int namelen)
                fread(buffer, at->size, 1, f);
                fclose(f);
                write_zipmember(out, dir_out, at->name, namelen, buffer, at->size, compression_level);
+               free(buffer);
                count++;
                l=g_list_next(l);
        }