Hi,
Thanks Heinrich, your comment helped me get rid of a memory leak I had in my application: although it is done correctly in the examples provided with GLPK for Java, I had forgotten to free the array memory using the delete methods. I was only freeing the problem memory using glp_delete_prob().
Now is it necessary to call glp_free_env() at the end of the program, or does GLPK take care of it itself in the case it exits without any error? You say that GC doesn't free the memory assigned in the GLPK library but in the examples, I only saw the call to this method in one case using several threads (GmplSwing). Why is it necessary in this case and not in the other examples?