aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat/linux-namespaces.c
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-08-21 16:55:53 +0100
committerGary Benson <gbenson@redhat.com>2015-08-21 16:56:22 +0100
commitf36b87190aed31b1ef7787e5966be542e8abdb58 (patch)
treeaa152b81b42a119c8e0e72fe44af4f4bcd762189 /gdb/nat/linux-namespaces.c
parentd02603dc201f80cd9d2a1f4b1a16110b1e04222b (diff)
downloadgdb-f36b87190aed31b1ef7787e5966be542e8abdb58.zip
gdb-f36b87190aed31b1ef7787e5966be542e8abdb58.tar.gz
gdb-f36b87190aed31b1ef7787e5966be542e8abdb58.tar.bz2
Fix stale cleanup left by linux_mntns_access_fs
This commit fixes a stale cleanup left by linux_mntns_access_fs. gdb/ChangeLog: * nat/linux-namespaces.c (linux_mntns_access_fs): Do not overwrite old_chain.
Diffstat (limited to 'gdb/nat/linux-namespaces.c')
-rw-r--r--gdb/nat/linux-namespaces.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nat/linux-namespaces.c b/gdb/nat/linux-namespaces.c
index fd0d4b0..4341429 100644
--- a/gdb/nat/linux-namespaces.c
+++ b/gdb/nat/linux-namespaces.c
@@ -894,7 +894,7 @@ linux_mntns_access_fs (pid_t pid)
if (fd < 0)
goto error;
- old_chain = make_cleanup_close (fd);
+ make_cleanup_close (fd);
if (fstat (fd, &sb) != 0)
goto error;