fixed bug in malloc_loop returning last successful size, not last unsuccessful size