Skip to content
This repository
Browse code

This fixes a memory leak in the allocation of doubles, but causes 4 t…

…ests to fail
  • Loading branch information...
commit ea88229c9a56a6700938e67a776f2191de0dd0a7 1 parent 60562ba
Duke Leto authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  swig/gsl_typemaps.i
4  swig/gsl_typemaps.i
@@ -27,6 +27,10 @@
27 27
     }
28 28
 }
29 29
 
  30
+%typemap(freearg) double const [] {
  31
+        if ($1) free($1);
  32
+}
  33
+
30 34
 %apply double const [] { 
31 35
     size_t *p ,double *data, double *dest, double *f_in, double *f_out,
32 36
     double data[], const double * src, double x[], double a[], double b[] , 

0 notes on commit ea88229

Please sign in to comment.
Something went wrong with that request. Please try again.