MapServer / MapServer-import

3 stars 2 forks source link

memeory leak with labepath object #2199

Closed tbonfort closed 12 years ago

tbonfort commented 12 years ago

Reporter: assefa Date: 2007/08/02 - 23:16 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.

tbonfort commented 12 years ago

Author: assefa Date: 2007/08/03 - 00:18 fix commited in 4278772761290ba3a161501d7fe6b9c7489179e8 (r6451)