bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: **/ directory wildcards leak file descriptors and memory


From: Andreas Schwab
Subject: Re: **/ directory wildcards leak file descriptors and memory
Date: Sat, 23 Jun 2012 22:51:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

This patch should fix it.

Andreas.

diff --git a/lib/glob/glob.c b/lib/glob/glob.c
index c77618f..4fb1d16 100644
--- a/lib/glob/glob.c
+++ b/lib/glob/glob.c
@@ -725,8 +725,6 @@ glob_vector (pat, dir, flags)
          FREE (tmplink);
        }
 
-      QUIT;
-
       return ((char **)NULL);
     }
 
@@ -1047,6 +1045,7 @@ glob_filename (pathname, flags)
        {
          if (free_dirname)
            free (directory_name);
+         QUIT;
          return (temp_results);
        }
 
-- 
1.7.11.1

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]