Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-05-18 23:02:07 +02:00
parent 102f0c1b6b
commit 99516eae07
3 changed files with 88 additions and 2 deletions
+4 -2
View File
@@ -28,8 +28,10 @@ int loadListFromCSV(char *_filename, list_t *_list)
}
else
{
exit(-1);
logErrorEvent(logger_global, "Error loading person from CSV: %s", buffer);
free(buffer);
fclose(f_in);
return 0;
}
}
free(buffer);