summaryrefslogtreecommitdiff
path: root/navit/maptool/osm_protobuf.c
diff options
context:
space:
mode:
authorJoseph Herlant <herlantj@gmail.com>2018-04-02 18:20:37 -0700
committerJoseph Herlant <herlantj@gmail.com>2018-04-02 18:20:37 -0700
commitab945bdc1a75f8d6568b7a00a46698de8427878e (patch)
tree25fd5b0f90f4b5a651d6b053dcdf01f6b17da43e /navit/maptool/osm_protobuf.c
parente6a71fd6770c36560cb9d8451ae36cc3c0018ba3 (diff)
downloadnavit-ab945bdc1a75f8d6568b7a00a46698de8427878e.tar.gz
maptool: migrate malloc to g_malloc
Diffstat (limited to 'navit/maptool/osm_protobuf.c')
-rw-r--r--navit/maptool/osm_protobuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/maptool/osm_protobuf.c b/navit/maptool/osm_protobuf.c
index b6eb5f2ca..1216f868a 100644
--- a/navit/maptool/osm_protobuf.c
+++ b/navit/maptool/osm_protobuf.c
@@ -76,7 +76,7 @@ read_blob(OSMPBF__BlobHeader *header, FILE *f, unsigned char *buffer)
static unsigned char *
uncompress_blob(OSMPBF__Blob *blob)
{
- unsigned char *ret=malloc(blob->raw_size);
+ unsigned char *ret=g_malloc(blob->raw_size);
int zerr;
z_stream strm;
@@ -355,7 +355,7 @@ map_collect_data_osm_protobuf(FILE *in, struct maptool_osm *osm)
OSMPBF__BlobHeader *header;
OSMPBF__Blob *blob;
unsigned char *data;
- unsigned char *buffer=malloc(MAX_BLOB_LENGTH);
+ unsigned char *buffer=g_malloc(MAX_BLOB_LENGTH);
#if 0
printf("<?xml version='1.0' encoding='UTF-8'?>\n");