|
From: | John W. Eaton |
Subject: | [Octave-bug-tracker] [bug #47372] Memory leaks and segmentation faults in Octave |
Date: | Tue, 05 Apr 2016 18:32:01 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0 |
Follow-up Comment #85, bug #47372 (project octave): I traced (at least some of) the classdef leaks to the way classdef functions are handled. The parser generates a classdef object that contains pointers to all the functions (all dynamically allocated memory for the parse tree nodes). The classdef object is stored in parser.classdef_object. Then that is used in the parse_fcn_file function to create the meta class for the classdef object, and a pointer to the classdef constructor function is returned. I think all of the functions end up in the symbol table, but the classdef_object field of the octave_base_parser object never seems to be deleted anywhere that I can see. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47372> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |