d3dcompiler: Actually free the function in free_function() (Valgrind).