Jochen Küpper writes:
I checked the source code for gsl_matrix_free and it will fail if passed
a null pointer.
Shouldn't the GSL free-routines be changed like the following patch?
My thinking on that was that for most people calling the free()
functions on a null pointer is usually an
Jochen Küpper wrote:
gsl_matrix_alloc and gsl_matrix free behave like alloc and free and
so I guess gsl_matrix_alloc returns 0 on failure and gsl_matrix_free
should not be called with a null pointer.
Actually it should be ok to call free with NULL, just not with any
other invalid