aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_horner.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_horner.c')
-rw-r--r--src/PJ_horner.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PJ_horner.c b/src/PJ_horner.c
index 08b64ab9..3dde29c8 100644
--- a/src/PJ_horner.c
+++ b/src/PJ_horner.c
@@ -451,6 +451,10 @@ PJ *PROJECTION(horner) {
complex_horner = 1;
Q = horner_alloc (degree, complex_horner);
+ if (Q == 0)
+ {
+ return horner_freeup (P);
+ }
P->opaque = (void *) Q;
if (complex_horner) {