3d8cc972aeac2f853c867a4b4bbbc1b78ae85c7c kent Fri Sep 5 17:04:21 2014 -0700 Adding new pipelineClose() function that combines pipelineWait and pipelineFree and applying it where it makes sense, in some cases fixing non-symptomatic bugs from missing pipelineWaits diff --git src/hg/pslPartition/pslPartition.c src/hg/pslPartition/pslPartition.c index 32a936a..f32a09d 100644 --- src/hg/pslPartition/pslPartition.c +++ src/hg/pslPartition/pslPartition.c @@ -80,32 +80,31 @@ { struct pslInput *pi; AllocVar(pi); pi->pl = openPslSortPipe(pslFile); pi->lf = pipelineLineFile(pi->pl); return pi; } static void pslInputFree(struct pslInput **piPtr) /* free pslInput object */ { struct pslInput *pi = *piPtr; if (pi != NULL) { assert(pi->pending == NULL); - pipelineWait(pi->pl); - pipelineFree(&pi->pl); + pipelineClose(&pi->pl); freez(piPtr); } } static struct psl *pslInputNext(struct pslInput *pi) /* read next psl */ { struct psl *psl = pi->pending; if (psl != NULL) pi->pending = NULL; else psl = pslNext(pi->lf); return psl; }