octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is this a memory leak?


From: Susi Lehtola
Subject: Is this a memory leak?
Date: Mon, 18 Jul 2016 23:42:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

Some code in octave-gsl:

    RowVector *y = new RowVector(gsl_sf_legendre_array_n (lmax));
    double *yd = y->fortran_vec();
    gsl_sf_legendre_array (GSL_SF_LEGENDRE_SPHARM, lmax, x, yd);

    return octave_value_list(octave_value(*y));

Is this a memory leak, since y is dynamically allocated but it's given as a dereferenced pointer to octave_value?

I tried running octave through valgrind, but I don't get any output..
--
Susi Lehtola
Fedora Project Contributor
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]