Fix build breakage caused by memory leaks in llvm-c-test