Opened 7 years ago

Closed 7 years ago

#34 closed defect (fixed)

Memory leak in XML interface

Reported by: Freddie Akeroyd Owned by:
Priority: major Milestone: NeXus 4.0 Ready
Component: Version:
Keywords: Cc:

Description

mxmlSaveFile() is passed the function NXwhitespaceCallback(), which allocates a string that is never deallocated. Using a static buffer is one way around this, but there may be a more elegant (and re-entrant/thread safe) solution.

Change History (1)

comment:1 Changed 7 years ago by Freddie Akeroyd

  • Resolution set to fixed
  • Status changed from new to closed

(In [872]) Stop memory leak in NXwhiteSpaceCallback by using static storage;
not ideal, but works. Fixes #34.

Note: See TracTickets for help on using tickets.