Skip to content

Alloc functions cleanup

Peter Limkilde Svendsen requested to merge plimkilde/relibc:alloc_cleanup into master

Various minor cleanup for the allocation functions in stdlib, including:

  • Avoid variable shadowing in realloc() (more readable)
  • Use built-in is_power_of_two() in memalign()
  • Skip errno:: prefix, the values are in scope
  • Add size-0 tests for alloc functions
  • Fix memory leaks (missing free()) for some of the tests

Merge request reports