[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] [PATCH] BUG FIX: allow NULL pointers in gsl_matrix_free,
From: |
Brian Gough |
Subject: |
Re: [Help-gsl] [PATCH] BUG FIX: allow NULL pointers in gsl_matrix_free, gsl_rng_free, gsl_vector_free |
Date: |
Wed, 14 Jan 2009 17:24:20 +0000 |
User-agent: |
Wanderlust/2.14.0 (Africa) Emacs/22.2 Mule/5.0 (SAKAKI) |
At Thu, 8 Jan 2009 22:39:14 -0500 (EST),
Leo Razoumov wrote:
>
> Long standing C-language idiom allows one to pass NULL pointer
> as an argument to various "free" functions (see "man free").
> Unfortunately, GSL functions gsl_matrix_free, gsl_rng_free,
> gsl_vector_free (and possibly several more) do not follow this
> convention and will crash the program if called with NULL pointer.
> This simple patch fixes the problem.
Thanks, I've logged this for the next release.
https://savannah.gnu.org/bugs/index.php?25319
--
Brian Gough
(GSL Maintainer)
Support freedom by joining the FSF!
http://www.fsf.org/associate/support_freedom/join_fsf?referrer=37