From d28307e082848a7686cffe6e919a43f4188376ac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 16 Apr 2019 20:07:48 +0200 Subject: [PATCH] neighbor/smbclient: fix double smbc_closedir() call There is already one call in ReadServers(), which is the correct place to do it. --- src/neighbor/plugins/SmbclientNeighborPlugin.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx index 909c56fc3..b6ed3b720 100644 --- a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx +++ b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx @@ -149,8 +149,6 @@ ReadServers(NeighborExplorer::List &list, int fd) noexcept smbc_dirent *e; while ((e = smbc_readdir(fd)) != nullptr) ReadEntry(list, *e); - - smbc_closedir(fd); } static void