** CID 702320: (USE_AFTER_FREE) /work/haiku/coverity/haiku/src/tools/fs_shell/vfs.cpp: 2644 in FSShell::vfs_normalize_path(const char *, char *, unsigned long, bool)() ________________________________________________________________________________________________________ *** CID 702320: (USE_AFTER_FREE) /work/haiku/coverity/haiku/src/tools/fs_shell/vfs.cpp: 2644 in FSShell::vfs_normalize_path(const char *, char *, unsigned long, bool)() 2638 strerror(error))); 2639 return error; 2640 } 2641 2642 // get the directory path 2643 error = dir_vnode_to_path(dirNode, buffer, bufferSize); >>> CID 702320: (USE_AFTER_FREE) >>> Calling "put_vnode" dereferences freed pointer "dirNode". 2644 put_vnode(dirNode); 2645 if (error < FSSH_B_OK) { 2646 TRACE(("vfs_normalize_path(): failed to get dir path: %s\n", strerror(error))); 2647 return error; 2648 } 2649 /work/haiku/coverity/haiku/src/tools/fs_shell/vfs.cpp: 2644 in FSShell::vfs_normalize_path(const char *, char *, unsigned long, bool)() 2638 strerror(error))); 2639 return error; 2640 } 2641 2642 // get the directory path 2643 error = dir_vnode_to_path(dirNode, buffer, bufferSize); >>> CID 702320: (USE_AFTER_FREE) >>> Passing freed pointer "dirNode" as an argument to "put_vnode". 2644 put_vnode(dirNode); 2645 if (error < FSSH_B_OK) { 2646 TRACE(("vfs_normalize_path(): failed to get dir path: %s\n", strerror(error))); 2647 return error; 2648 } 2649 ** CID 1397511: (USE_AFTER_FREE) /work/haiku/coverity/haiku/src/tools/fs_shell/vfs.cpp: 2752 in FSShell::vfs_entry_ref_to_path(int, long, const char *, bool, char *, unsigned long)() ________________________________________________________________________________________________________ *** CID 1397511: (USE_AFTER_FREE) /work/haiku/coverity/haiku/src/tools/fs_shell/vfs.cpp: 2752 in FSShell::vfs_entry_ref_to_path(int, long, const char *, bool, char *, unsigned long)() 2746 status = get_vnode(device, inode, &vnode, false); 2747 if (status < FSSH_B_OK) 2748 return status; 2749 2750 // get the directory path 2751 status = dir_vnode_to_path(vnode, path, pathLength); >>> CID 1397511: (USE_AFTER_FREE) >>> Calling "put_vnode" dereferences freed pointer "vnode". 2752 put_vnode(vnode); 2753 // we don't need the vnode anymore 2754 if (status < FSSH_B_OK) 2755 return status; 2756 2757 // append the leaf name /work/haiku/coverity/haiku/src/tools/fs_shell/vfs.cpp: 2752 in FSShell::vfs_entry_ref_to_path(int, long, const char *, bool, char *, unsigned long)() 2746 status = get_vnode(device, inode, &vnode, false); 2747 if (status < FSSH_B_OK) 2748 return status; 2749 2750 // get the directory path 2751 status = dir_vnode_to_path(vnode, path, pathLength); >>> CID 1397511: (USE_AFTER_FREE) >>> Passing freed pointer "vnode" as an argument to "put_vnode". 2752 put_vnode(vnode); 2753 // we don't need the vnode anymore 2754 if (status < FSSH_B_OK) 2755 return status; 2756 2757 // append the leaf name