修复内存池泄漏
This commit is contained in:
@ -153,7 +153,7 @@ int cleanup(log_manager *self)
|
||||
write_into_block(logbuf,":",&buf_length,MAX_LOG_LENGTH,"log.txt");
|
||||
write_into_block(logbuf,loc->log,&buf_length,MAX_LOG_LENGTH,"log.txt");
|
||||
|
||||
free(loc);
|
||||
self->mempool->FreeBlock(self,loc_p);
|
||||
|
||||
fd = open("log.txt",O_CREAT | O_WRONLY | O_APPEND, 0644);
|
||||
if(fd == -1){
|
||||
|
||||
Reference in New Issue
Block a user