@@ -137,6 +137,11 @@ void error_init(){
void error_finit(const char* filename){
extern Error error;
int fd, length;
+ //Si il y a deja un log
+ if(error.init){
+ //On le ferme
+ error.end();
+ }
//Ouverture fichier
fd = open(filename, O_CREAT | O_RDWR, S_IRWXU);
if(fd == ERR){