Ticket #34 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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

comment:1 Changed 6 years ago by Freddie Akeroyd

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

(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.