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

Change-Id: Ia62fe8e184c71e0ebbb3004fe8cbd82437a78931