Recently there was a patch (commit f5b9bdcb530a8871e6c65a617d41001b39bf4912), to fix resource leak on dir_topology.
Now, the below code segment is either unnecessary or it should call opendir on 'newpath' instead of 'path'?
dir_topology = opendir(path); if (!dir_topology) continue; closedir(dir_topology);
Please comment.
-- Thanks, -Meraj