autowrap, fix memory leaks

Now works with latest GLPK.