toybox
toybox copied to clipboard
expr: fix memory management
Andy Chu's patch from the mailing list, modified slightly to fit the current source. http://lists.landley.net/htdig.cgi/toybox-landley.net/2016-March/008113.html
This fixes #147 as well as fixing all remaining memory management issues in expr from what I can see (valgrind now gives no warnings or any indication of issues while previously it reported many invalid reads).
ping
uh I did not mean to do that
(you might want to squash the two commits into one for ease of review. you probably also want to just send the patch on the list, because rob pays more attention to that than to the pull requests...)