
Pages:<< prev 1 next >>

Off 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 >>