octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #53514] Memory leaks in 4.4 release


From: Rik
Subject: [Octave-bug-tracker] [bug #53514] Memory leaks in 4.4 release
Date: Thu, 29 Mar 2018 16:30:43 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #10, bug #53514 (project octave):

I was able to run through the entire test suite.  I'm attaching the list of
"Direct leak"s.  It seems that a fair number are related to octave_putenv
which cannot be changed.  56 other instances are related to register_type as I
noted in the first submission.  And then there are a few odd leaks that appear
to be related to feval.  I don't know if there is a problem with feval, or
whether the code that was executed had a leak.

For the 56 instances of register_type, I think there should be a simple
solution.  This is code from ov-base.h


  void t::register_type (octave::type_info& ti)                 \
  {                                                             \
    octave_value v (new t ());                                  \
    t_id = ti.register_type (t::t_name, t::c_name, v);          \
  }


It looks to me like that call to new is not paired with a delete.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53514>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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