From d9da685fa869b9495e3554291f8ed57fdfc4b15a Mon Sep 17 00:00:00 2001 From: Bess <bakere1@student.unimelb.edu.au> Date: Sun, 28 Mar 2021 19:19:38 +1100 Subject: [PATCH] buffProc -not for task4 test 2 --- allocate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/allocate.c b/allocate.c index 17748f2..2a4fbcf 100644 --- a/allocate.c +++ b/allocate.c @@ -549,6 +549,7 @@ process *getNextProcessB(FILE *f, llist *arrivals, process *readAhead) { //llist_print(); while (readAhead->timeArrived != -1 && !batchEnd) { if (fgets(line, sizeof line, f) != NULL) { + newProcess = malloc(sizeof(process)); initializeProcess(line, newProcess); if (newProcess->timeArrived == readAhead->timeArrived) { llist_add_inorder(newProcess, arrivals, (int (*)(void *, void *)) &leastExecutionTime); -- GitLab