f947acce83460c48e4412a8c501decb67a9587cd
jcasper
  Thu Apr 6 00:04:19 2023 -0700
Good idea to close the pipeline when you're done with it (thanks Hiram), no ticket

diff --git src/lib/psGfx.c src/lib/psGfx.c
index 734c9a8..062ffb6 100644
--- src/lib/psGfx.c
+++ src/lib/psGfx.c
@@ -63,30 +63,31 @@
 /* Check the version of GS and return whether it supports the newer transparency operators */
 {
 boolean support = FALSE;
 char *versionCmd[] = { "gs", "--version", NULL };
 struct pipeline *pl = pipelineOpen1(versionCmd, pipelineRead, "/dev/null", NULL, 0);
 if (pl)
     {
     struct lineFile *lf = pipelineLineFile(pl);
     char *versionString;
     lineFileNext(lf, &versionString, NULL);
     char *minorVersion = NULL;
     if (strchr(versionString, '.'))
         minorVersion = strchr(versionString, '.') + 1;
     if ((atoi(versionString) > 9) || (atoi(versionString) == 9 && minorVersion && atoi(minorVersion) > 51))
         support = TRUE;
+    pipelineClose(&pl);
     }
 return support;
 }
 
 struct psGfx *psOpen(char *fileName, 
 	double userWidth, double userHeight, /* Dimension of image in user's units. */
 	double ptWidth, double ptHeight,     /* Dimension of image in points. */
 	double ptMargin)                     /* Image margin in points. */
 /* Open up a new postscript file.  If ptHeight is 0, it will be
  * calculated to keep pixels square. */
 {
 struct psGfx *ps;
 
 /* Allocate structure and open file. */
 AllocVar(ps);