From f36b87190aed31b1ef7787e5966be542e8abdb58 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Fri, 21 Aug 2015 16:55:53 +0100 Subject: 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. --- gdb/nat/linux-namespaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/nat') 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; -- cgit v1.1