inode2filename: Fix a use-after-free bug. am: 57484b6032

Change-Id: I747877c5d703a8ff521b2890edb365e35895eb3f
diff --git a/src/inode2filename/search_directories.cc b/src/inode2filename/search_directories.cc
index f450088..1d31671 100644
--- a/src/inode2filename/search_directories.cc
+++ b/src/inode2filename/search_directories.cc
@@ -183,7 +183,7 @@
     });
 
     if (found != inode_list.end()) {
-      const Inode& inode = found->second;
+      Inode inode = found->second;
       LOG(VERBOSE) << "InodeSet:FindAndRemoveInodeInList *success* inode+device " << inode;
       DCHECK(found->second.inode == stat_buf.st_ino);
       // Erase the inode from the list. This is important.