aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PJ_urm5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_urm5.c b/src/PJ_urm5.c
index 9d904fc7..4edb4215 100644
--- a/src/PJ_urm5.c
+++ b/src/PJ_urm5.c
@@ -47,11 +47,11 @@ PJ *PROJECTION(urm5) {
Q->n = pj_param(P->ctx, P->params, "dn").f;
if (Q->n <= 0. || Q->n > 1.) {
proj_errno_set(P, PJD_ERR_N_OUT_OF_RANGE);
- return freeup_new(0);
+ return freeup_new(P);
}
} else {
proj_errno_set(P, PJD_ERR_N_OUT_OF_RANGE);
- return freeup_new(0);
+ return freeup_new(P);
}
Q->q3 = pj_param(P->ctx, P->params, "dq").f / 3.;
alpha = pj_param(P->ctx, P->params, "ralpha").f;