Fix memory leak in inlining.

Found by FROGGS++ using Valgrind.