Zombie processes fix

pull/22/head
parent 6e371b229c
commit 82b564d080

@ -781,6 +781,7 @@ char *yon_ubl_root_user_get(){
memset(user,0,4096);
fgets(user,4096,file);
user=yon_char_divide_search(user,"\n",-1);
fclose(file);
if (user) return user;
}
}
@ -793,6 +794,7 @@ char *yon_ubl_user_get_home_directory(){
memset(ret,0,4096);
fgets(ret,4096,path);
ret=yon_char_divide_search(ret,"\n",-1);
fclose(path);
return ret;
}
@ -1492,6 +1494,8 @@ config_str yon_config_load(char *command, int *str_len){
i++;
}
}
if (output)
fclose(output);
if (i>0){
*str_len = i;
return output_strings;
@ -1740,6 +1744,7 @@ char *yon_config_save_simple(YON_CONFIG_TYPE target, char *path){
return final_string;
}
}
fclose(file);
}
}
return NULL;

Loading…
Cancel
Save