2011-02-26 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Sun, 27 Feb 2011 21:41:26 +0000 (21:41 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sun, 27 Feb 2011 21:41:26 +0000 (21:41 +0000)
* linux-low.c (list_threads): Call closedir for dirent.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index 2a384db304a984333a5bf23c698fa7c2584e5b5f..1aaf401006c76b799b94b46b4a4043f7b17b2c29 100644 (file)
@@ -1,3 +1,7 @@
+2011-02-26  Michael Snyder  <msnyder@vmware.com>
+
+       * linux-low.c (list_threads): Call closedir for dirent.
+
 2011-02-27  Michael Snyder  <msnyder@vmware.com>
 
        * i386-low.c (i386-length_and_rw_bits): Comment the fact that
index 7b8eba777c2572142f41d740a2dad9d71183ee85..81b8540606a0680465546832c158943dea61155e 100644 (file)
@@ -4518,6 +4518,7 @@ list_threads (int pid, struct buffer *buffer, char **cores)
                }
            }
        }
+      closedir (dir);
     }
 
   if (cores)