some fixes in malloc.c