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.
+2015-08-21 Gary Benson <gbenson@redhat.com>
+
+ * nat/linux-namespaces.c (linux_mntns_access_fs):
+ Do not overwrite old_chain.
+
2015-08-21 Pedro Alves <palves@redhat.com>
* remote.c (struct readahead_cache): New.
if (fd < 0)
goto error;
- old_chain = make_cleanup_close (fd);
+ make_cleanup_close (fd);
if (fstat (fd, &sb) != 0)
goto error;