summaryrefslogtreecommitdiff
path: root/sci-mathematics/flint/files/flint-2.5.2-memory_message.patch
blob: 65638aa7790b1f8641c488b2bc5b841d77996b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This fixes a Python 3 doctest failure in
rings/polynomial/polynomial_integer_dense_flint.pyx: see #28334.
See https://github.com/wbhart/flint2/pull/585 for upstream PR

diff --git a/memory_manager.c b/memory_manager.c
index 04abf8a..bece9f5 100644
--- a/memory_manager.c
+++ b/memory_manager.c
@@ -41,6 +41,7 @@ pthread_mutex_t register_lock;
 static void flint_memory_error()
 {
     flint_printf("Exception (FLINT memory_manager). Unable to allocate memory.\n");
+    fflush(stdout);
     abort();
 }