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.
This commit is contained in:
Gary Benson 2015-08-21 16:55:53 +01:00
parent d02603dc20
commit f36b87190a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-08-21 Gary Benson <gbenson@redhat.com>
* nat/linux-namespaces.c (linux_mntns_access_fs):
Do not overwrite old_chain.
2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
* arch/xtensa.h: New file.

View File

@ -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;