diff --git a/lib/memdebug.c b/lib/memdebug.c index 96ea5d94c..05d0702fe 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -91,6 +91,9 @@ static bool countcheck(const char *func, int line, const char *source) if(logfile && source) fprintf(logfile, "LIMIT %s:%d %s reached memlimit\n", source, line, func); + if(source) + fprintf(stderr, "LIMIT %s:%d %s reached memlimit\n", + source, line, func); return TRUE; /* RETURN ERROR! */ } else