Fixes memory leak where programSource was not freed after compilation.