commit | 4abaee5d13a54c677cd132c481dbf7621f785fec | [log] [tgz] |
---|---|---|
author | Mike Hommey <mh@glandium.org> | Fri Jul 08 13:28:16 2016 +0900 |
committer | Mike Hommey <mh@glandium.org> | Fri Jul 08 13:28:16 2016 +0900 |
tree | eeb5194717cdda94f7109c23589fa591f313b43f | |
parent | 47b34dd39850b8b157c67887d9b6bf7bd3095796 [diff] |
Avoid getting the same default zone twice in a row. 847ff22 added a call to malloc_default_zone() before the main loop in register_zone, effectively making malloc_default_zone() called twice without any different outcome expected in the returned result. It is also called once at the beginning, and a second time at the end of the loop block. Instead, call it only once per iteration.