aboutsummaryrefslogtreecommitdiff
path: root/src/pr_list.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2020-12-13 15:30:47 +0100
committerKristian Evers <kristianevers@gmail.com>2020-12-13 15:30:47 +0100
commitc3efbd23a5bf26f1dfd5bc55ae3488d5665ace98 (patch)
treea204df79f7057d7d420bf7c5358791347617b9cd /src/pr_list.cpp
parent126445148d3b742c7f4e31f5f65857be59c48340 (diff)
parent6857d1a4a8eb6fcb7b88b0339413913ba2c3351a (diff)
downloadPROJ-c3efbd23a5bf26f1dfd5bc55ae3488d5665ace98.tar.gz
PROJ-c3efbd23a5bf26f1dfd5bc55ae3488d5665ace98.zip
Merge remote-tracking branch 'osgeo/master'
Diffstat (limited to 'src/pr_list.cpp')
-rw-r--r--src/pr_list.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pr_list.cpp b/src/pr_list.cpp
index 77db5bfb..30fc6571 100644
--- a/src/pr_list.cpp
+++ b/src/pr_list.cpp
@@ -66,7 +66,7 @@ char *pj_get_def( PJ *P, int options )
size_t def_max = 10;
(void) options;
- definition = (char *) pj_malloc(def_max);
+ definition = (char *) malloc(def_max);
if (!definition)
return nullptr;
definition[0] = '\0';
@@ -84,14 +84,14 @@ char *pj_get_def( PJ *P, int options )
char *def2;
def_max = def_max * 2 + l + 5;
- def2 = (char *) pj_malloc(def_max);
+ def2 = (char *) malloc(def_max);
if (def2) {
strcpy( def2, definition );
- pj_dalloc( definition );
+ free( definition );
definition = def2;
}
else {
- pj_dalloc( definition );
+ free( definition );
return nullptr;
}
}