fixed wrong memset()'s order in malloc.c :)