inode2filename: Fix a use-after-free bug.

Bug: 150331085
Test: Make
Change-Id: I4f5846cedb64ce7ea3c4a8ac4feef61ff0e3218c
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.