void job_free(job j) { if (j) { TUBE_ASSIGN(j->tube, NULL); if (j->id) job_hash_free(j); } free(j); }
void job_free(job j) { if (j) { TUBE_ASSIGN(j->tube, NULL); if (j->state != JOB_STATE_COPY) job_hash_free(j); } free(j); }