We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bad9916 commit 66385ffCopy full SHA for 66385ff
src/flint/types/arb.pyx
@@ -12,6 +12,7 @@ from flint.types.fmpq cimport fmpq
12
from flint.types.fmpz cimport fmpz
13
14
from flint.flintlib.types.flint cimport FMPZ_UNKNOWN, FMPZ_TMP, FMPZ_REF
15
+from flint.flintlib.functions.flint cimport flint_free
16
from flint.flintlib.functions.mag cimport *
17
from flint.flintlib.functions.fmpz cimport fmpz_init, fmpz_clear
18
from flint.flintlib.functions.arf cimport *
@@ -474,7 +475,7 @@ cdef class arb(flint_scalar):
474
475
try:
476
res = str_from_chars(s)
477
finally:
- libc.stdlib.free(s)
478
+ flint_free(s)
479
if ctx.unicode:
480
res = res.replace("+/-", "±")
481
return res
0 commit comments