From 92398a533ac2cca74e3708796ba3bb463b08ac17 Mon Sep 17 00:00:00 2001 From: Renge Date: Fri, 15 Apr 2022 23:36:48 -0400 Subject: [PATCH] fix: free jobs --- hw4/src/jobs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw4/src/jobs.c b/hw4/src/jobs.c index 548bcba..1f1f8a1 100644 --- a/hw4/src/jobs.c +++ b/hw4/src/jobs.c @@ -498,6 +498,7 @@ int jobs_expunge(int jobid) { free_pipeline(job_data_array[jobid]->pipeline); job_current_size -= 1; + free(job_data_array[jobid]); job_data_array[jobid] = NULL; return 0;