On Thu, 2003-01-23 at 12:17, Bret Baptist wrote: > On Thursday 23 January 2003 9:40 am, Ryan Butler wrote: > > Also on the pop3 server sig 11'ing, there is a double free going on on > > an apop string, I commented out one of the my_free() 's and it quit > > segfaulting. > > > > The double my_free is in pop3_handle_client: > > > > /* memory cleanup */ > > my_free(buffer); > > my_free(apop_stamp); > > buffer = NULL; > > my_free(apop_stamp); > > apop_stamp = NULL; > > > > Which one did you remove? Or does it make a difference? >
It doesn't make a difference but I removed the first my_free(apop_stamp); > By the way, the double free is still in CVS. Though mine looks like this: > /* memory cleanup */ > my_free(buffer); > buffer = NULL; > my_free(apop_stamp); > apop_stamp = NULL; > That's not a double free, a double free occurs when you free a pointer, then free it again, since you're freeing two separate pointers here, that's fine. The double free is calling my_free(apop_stamp); then calling my_free(apop_stamp); again. > Thanks. -- Ryan Butler <[EMAIL PROTECTED]> ADI Internet Solutions