fix: free jobs

This commit is contained in:
Renge 2022-04-15 23:36:48 -04:00
parent e6b14fa80e
commit 92398a533a

View File

@ -498,6 +498,7 @@ int jobs_expunge(int jobid) {
free_pipeline(job_data_array[jobid]->pipeline); free_pipeline(job_data_array[jobid]->pipeline);
job_current_size -= 1; job_current_size -= 1;
free(job_data_array[jobid]);
job_data_array[jobid] = NULL; job_data_array[jobid] = NULL;
return 0; return 0;