salad: fix heap reserve() behaviour
Reserve() function by definition should ensure that there is enough space to store something. But heap reserve() always just increases the capacity twice. Even if there was already enough memory. Check for not necessary realloc was done out of this function. This was wrong. The commit makes reserve() be real reserve(). The commit is motivated not by pursue of justice, but by forthcoming usage of reserve() in SWIM module code.
Loading
Please register or sign in to comment