diff options
-rw-r--r-- | src/indexamajig.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 7310d391..5a8bd816 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -1257,6 +1257,10 @@ int main(int argc, char *argv[]) free(result_fhs); fclose(fh); free(pids); + for ( j=0; j<i-1; j++ ) { + fclose(result_fhs[j]); + close(filename_pipes[j]); + } /* Child process gets the 'read' end of the filename * pipe, and the 'write' end of the result pipe. */ |