summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-16 20:07:48 +0200
committerMax Kellermann <max@musicpd.org>2019-04-18 09:40:56 +0200
commit7d814cc899111583c9ddfc3aa17d38f8a15796e0 (patch)
tree8c48a1146d9b14ebef1185219fd123f3e80c5d8a /src
parentf5b4606c096f388efaf154227b99ae33c7accfd8 (diff)
neighbor/smbclient: fix double smbc_closedir() call
There is already one call in ReadServers(), which is the correct place to do it.
Diffstat (limited to 'src')
-rw-r--r--src/neighbor/plugins/SmbclientNeighborPlugin.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
index 4ed196bef..d6b426f74 100644
--- a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
+++ b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
@@ -150,8 +150,6 @@ ReadServers(NeighborExplorer::List &list, int fd)
smbc_dirent *e;
while ((e = smbc_readdir(fd)) != nullptr)
ReadEntry(list, *e);
-
- smbc_closedir(fd);
}
static void