Thomas Faller tfaller1@gmx.de writes:
Valgrind can't handle a realloc, if the new size is zero. Fix for bug https://bugs.winehq.org/show_bug.cgi?id=37646
I'd suggest fixing valgrind, or if not possible, using a size of 1. Your change seems like it would make notifications less useful in several cases.