From 7d814cc899111583c9ddfc3aa17d38f8a15796e0 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
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 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