hrldcpr/hungarian — pull request #3 by js850 (2012-11-20 13:41:58+00:00)
Title: bug fixes and memory leaks

Hi I've found this package very useful, but I needed the fixes in this pull request to get it to work for me.

One problem was that int and npy_intp are not the same on my system, so (npy_intp*)&n where n is an integer didn't work for me

The others were a few memory leaks. 1) The array ccosts was never freed, and 2) the returned solution arrays are never freed in python (probabaly an issue with reference counting).

I modified the example script to iterate the calculation in order to see the memory leak problems.