bugGNU Scientific Library - Bugs: bug #25319, allow NULL pointers in free...


You are not allowed to post comments on this tracker with your current authentication level.

bug #25319: allow NULL pointers in free functions

Submitted by:  -Deleted Account- <bjg>
Submitted on:  Wed 14 Jan 2009 05:20:08 PM UTC  
Category:  None Severity:  3 - Normal
Operating System:  Status:  Fixed
Assigned to:  None Open/Closed:  Closed
Release:  1.12

Thu 09 Jul 2009 08:37:48 PM UTC, comment #1: 

fixed by commit f5b991ec9306815a5488bdd6d1a1b5f92ed3068f

-Deleted Account- <bjg>
Wed 14 Jan 2009 05:20:08 PM UTC, original submission:  

From: Leo Razoumov <slonik.az@gmail.com>
To: -email is unavailable-
Subject: [Help-gsl] [PATCH] BUG FIX: allow NULL pointers in gsl_matrix_free, gsl_rng_free, gsl_vector_free
Date: Thu, 8 Jan 2009 22:39:14 -0500 (EST)

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.


  matrix/init_source.c |    1 +
  rng/rng.c            |    1 +
  vector/init_source.c |    1 +
  3 files changed, 3 insertions(+), 0 deletions(-)


-Deleted Account- <bjg>


Attached Files
file #17259:  free.patch added by bjg (1KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty




Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2009-07-09 bjg StatusConfirmed => Fixed
    Open/ClosedOpen => Closed
2009-01-14 bjg Attached File- => Added free.patch, #17259

Back to the top

Powered by Savane 3.6