Skip to content

Commit

Permalink
Fixed wrong SG_FREE in ARPACK wrapper leading to segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Jul 30, 2011
1 parent cbb8d24 commit 9a6e8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/mathematics/arpack.cpp
Expand Up @@ -141,7 +141,7 @@ void arpack_dsaupd(double* matrix, int n, int nev, const char* which,
}
}
} while ((ido==1)||(ido==-1));
if (!pos) SG_FREE(ipiv);
if (!pos && mode==3) SG_FREE(ipiv);
if (mode==3) SG_FREE(tmp);

// check if DSAUPD failed
Expand Down

0 comments on commit 9a6e8ac

Please sign in to comment.