This is another important change: you are increasing chunk size with every malloc.