Patch from Scott McKellar to plug a memory leak in the mathbench test application