Ticket #2199 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

memeory leak with labepath object

Reported by: assefa Owned by: assefa
Priority: normal Milestone: 5.0 release
Component: MapServer C Library Version:
Severity: normal Keywords:
Cc: dmorissette

Description

It seems that the labepath object of the labelCacheMemberObj is never freed accumulating in a substantial memory leak when lots of text are involved.

The fix from what I can see is to add the free in function msFreeLabelCacheSlot

if (cacheslot->labels[i].labelpath)

msFreeLabelPathObj(cacheslot->labels[i].labelpath);

hopefully that would be it.

I will do few tests before applying fix.

Change History

Changed 6 years ago by assefa

  • status changed from new to closed
  • resolution set to fixed

fix commited in r6451

Note: See TracTickets for help on using tickets.