Opened 17 years ago

Closed 17 years ago

#2120 closed defect (fixed)

Memory Leak in msSetup()

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

Description

In maputil.c, in msSetup() we call:

#ifdef USE_GD_FT
  if (gdFontCacheSetup() != 0) {
    return MS_FAILURE;
   }
#endif

We need to add a corresponding block in msCleanup() to to free this like:

#ifdef USE_GD_FT
  if (gdFontCacheShutdown() != 0) {
    return MS_FAILURE;
   }
#endif

Change History (3)

comment:1 by hobu, 17 years ago

Steve,

I applied this patch in r6188.

Howard

comment:2 by woodbri, 17 years ago

Howard,

Sorry, my bad. The patch should be as msCleanup() does not return a value.

#ifdef USE_GD_FT
  gdFontCacheShutdown();
#endif

comment:3 by hobu, 17 years ago

Resolution: fixed
Status: newclosed

ok, fixed in r6189.

Note: See TracTickets for help on using tickets.