diff options
Diffstat (limited to 'intern/guardedalloc/test/simpletest/memtest.c')
-rw-r--r-- | intern/guardedalloc/test/simpletest/memtest.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/intern/guardedalloc/test/simpletest/memtest.c b/intern/guardedalloc/test/simpletest/memtest.c index ec72b0f01e5..51f1f491894 100644 --- a/intern/guardedalloc/test/simpletest/memtest.c +++ b/intern/guardedalloc/test/simpletest/memtest.c @@ -47,6 +47,12 @@ #include <config.h> #endif +static void mem_error_cb(const char *errorStr) +{ + fprintf(stderr, "%s", errorStr); + fflush(stderr); +} + int main (int argc, char *argv[]) { int verbose = 0; @@ -75,7 +81,7 @@ int main (int argc, char *argv[]) /* Round one, do a normal allocation, and free the blocks again. */ /* ----------------------------------------------------------------- */ /* flush mem lib output to stderr */ - MEM_set_error_callback(stderr); + MEM_set_error_callback(mem_error_cb); for (i = 0; i < NUM_BLOCKS; i++) { int blocksize = 10000; |