chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ec.c: Free partially constructed points coordinatewise.
[catacomb-python]
/
ec.c
diff --git
a/ec.c
b/ec.c
index 6280010d7701421026de9589f75fc77206aa3691..f0747a8d123a8ac51e0f251d81dc95f47c20b53f 100644
(file)
--- a/
ec.c
+++ b/
ec.c
@@
-508,7
+508,7
@@
static PyObject *ecptnc_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
goto end;
return (ecpt_pywrapout(ty, &p));
end:
goto end;
return (ecpt_pywrapout(ty, &p));
end:
-
EC_DESTROY(&p
);
+
mp_drop(p.x); mp_drop(p.y); mp_drop(p.z
);
return (0);
}
return (0);
}
@@
-550,7
+550,7
@@
static PyObject *ecpt_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
goto end;
return (ecpt_pywrap((PyObject *)ty, &p));
end:
goto end;
return (ecpt_pywrap((PyObject *)ty, &p));
end:
-
EC_DESTROY(&p
);
+
mp_drop(p.x); mp_drop(p.y); mp_drop(p.z
);
return (0);
}
return (0);
}