]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/lread.c (openp): Fix previous change (don't leak file descriptors)
authorGlenn Morris <rgm@gnu.org>
Wed, 18 Dec 2013 04:05:57 +0000 (20:05 -0800)
committerGlenn Morris <rgm@gnu.org>
Wed, 18 Dec 2013 04:05:57 +0000 (20:05 -0800)
src/lread.c

index c24af0cf9cde0d1530ce0f5d53f47d70c424d6b5..b8b9189719bc95252cf1939a029197787904d574 100644 (file)
@@ -1634,6 +1634,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes,
                           save_mtime = mtime;
                           save_string = string;
                         }
+                      else emacs_close (fd);
                     }
                   else
                     {