Looks like this causes valgrind failures in c_test. Run the test with `valgrind --leak-check=full ./c_test`. Let me know if you can't repro.