 [Bug] Memory Leak in free_desc
  [Bug] Memory Leak in free_desc
 
 Pages:<< prev   1  next >>
 InfiniteAxis
  InfiniteAxisOff the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
  Bug: Memory Leak in free_desc
Danger: High - Memory Leaks are BAD.
Found by: Nick Gammon
Fixed by: Nick Gammon
---
comm.c, free_desc
Change to:
This is definitely a Doh! kinda thing. Don't know how long this has gone without notice, but it's a good thing Nick was around to save the day.
Danger: High - Memory Leaks are BAD.
Found by: Nick Gammon
Fixed by: Nick Gammon
---
comm.c, free_desc
Change to:
void free_desc( DESCRIPTOR_DATA * d )
{
   compressEnd( d );
   close( d->descriptor );
   STRFREE( d->host );
   DISPOSE( d->outbuf );
   if( d->pagebuf )
      DISPOSE( d->pagebuf );
   DISPOSE( d->mccp );
   DISPOSE( d );
   return;
}
This is definitely a Doh! kinda thing. Don't know how long this has gone without notice, but it's a good thing Nick was around to save the day.
 Pages:<< prev   1  next >>
 
       
       Top Posters
      Top Posters
      Top Uploaders
      Top Uploaders
      Users Online
      Users Online
      Stats
      Stats
     
