summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 823536f2ab..3ad2aa5b0f 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -197,6 +197,9 @@ max can be %d\n",
fd_set lfds;
int num;
+ /* Free up temporary memory from the main smbd. */
+ lp_talloc_free();
+
memcpy((char *)&lfds, (char *)&listen_set,
sizeof(listen_set));