aboutsummaryrefslogtreecommitdiff
path: root/src/pr_list.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2020-11-26 20:58:01 +0100
committerGitHub <noreply@github.com>2020-11-26 20:58:01 +0100
commit3cb26a406a7e1a964f5f3b5caf3c624222664fb2 (patch)
tree414dad90bd94170f6e619197b9a47bfca096d322 /src/pr_list.cpp
parentf5b3616bb03f8e52a5e5a23704d645492a662393 (diff)
parentd9205b9245388f23b65917a21ec72d6bec15d035 (diff)
downloadPROJ-3cb26a406a7e1a964f5f3b5caf3c624222664fb2.tar.gz
PROJ-3cb26a406a7e1a964f5f3b5caf3c624222664fb2.zip
Merge pull request #2403 from kbevers/remove-proj_api.h
Remove proj_api.h
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;
}
}