The below patch fixes two memory leaks I found whilst testing the
examples with valgrind.
1) In delaunay.c the d->points allocated in delaunay_build is not
freed anywhere. I think this only applies if qhull is used. I'd
appreciate it someone else who knows more about this could confirm
that. This causes leaks using griddata in example 21.
2) In plmap the map file is never closed after the data is read in.
This leaks memory associated with the file handle. (This is much more
trivial than the first fix.) plmap appears in example 19.
Get latest updates about Open Source Projects, Conferences and News.