--- transfig/sys.c +++ transfig/sys.c 2009-10-09 14:17:09.932073007 +0200 @@ -37,6 +37,7 @@ char *sysls() i += 1; c = fgetc(ls); } + pclose(ls); sysbuf[i] = '\0'; return sysbuf; }