From 69d371133c9dfbdcf30e91a2aa44e7f191dff09c Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Sun, 27 Feb 2011 21:41:26 +0000 Subject: [PATCH] 2011-02-26 Michael Snyder * linux-low.c (list_threads): Call closedir for dirent. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/linux-low.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 2a384db304a..1aaf401006c 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2011-02-26 Michael Snyder + + * linux-low.c (list_threads): Call closedir for dirent. + 2011-02-27 Michael Snyder * i386-low.c (i386-length_and_rw_bits): Comment the fact that diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 7b8eba777c2..81b8540606a 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -4518,6 +4518,7 @@ list_threads (int pid, struct buffer *buffer, char **cores) } } } + closedir (dir); } if (cores) -- 2.30.2