Fix stale cleanup left by linux_mntns_access_fs
[deliverable/binutils-gdb.git] / gdb / nat / linux-namespaces.c
index fd0d4b05ec49daf4ea599e92f4355232dae2cbda..434142936e2f236066d61cb60f2837e59be84e41 100644 (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;
This page took 0.023056 seconds and 4 git commands to generate.