http://bugs.winehq.org/show_bug.cgi?id=28039
--- Comment #6 from Jörg Höhle hoehle@users.sourceforge.net 2011-11-23 02:45:34 CST --- Oops, I wrote to bug #21655, comment #5 instead of here. That other bug mentioned a past "Non-aligned pointer being freed" error. Except this time, I get no backtrace.
After applying your patch atop 1.3.32 I obtain this shortly after the end of the second and subsequent test runs, apparently as Wine unloads, but not always.
wine(5770,0x4080c200) malloc: *** error for object 0x402086c0: Non-aligned pointer being freed (2) *** set a breakpoint in malloc_error_break to debug wine(5770,0x4080c200) malloc: *** error for object 0x402085c0: Non-aligned pointer being freed (2) *** set a breakpoint in malloc_error_break to debug
git checkout HEAD^; make; and that is gone.