#63
Fix memory leak in `valgrind_check` cleanup loop
The cleanup loop had two bugs:
- Used
triesas the array index instead ofi, freeing the wrong allocation repeatedly - Used
< triesinstead of<= tries, skipping the successful allocation entirely when succeeding on the first try