Skip to content
Browse files

fix sv_2mortal on return AV*

  • Loading branch information...
1 parent 8695273 commit a521d07a1f853f47da53fc2c1e773ed53f7ae4cb @jberger committed May 22, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 Changes
  2. +1 −0 lib/PerlGSL/Integration/MultiDim.xs
View
1 Changes
@@ -2,6 +2,7 @@ Revision history for Perl module PerlGSL::Integration::MultiDim.
0.003
- Opts can be hash or hashref, symmetric with SingleDim
+ - Fix memory leak
0.002 May 9, 2012
- Don't attempt to install without GSL
View
1 lib/PerlGSL/Integration/MultiDim.xs
@@ -62,6 +62,7 @@ AV* c_int_multi(SV* eqn, AV* lower, AV* upper, int calls) {
struct params myparams;
gsl_monte_function F;
AV* ret = newAV();
+ sv_2mortal((SV*)ret);
/* deal with lower and upper limits */

0 comments on commit a521d07

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