summaryrefslogtreecommitdiff
path: root/source3/smbd/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r--source3/smbd/files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index abd654c015..a2a7dabea5 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -195,7 +195,8 @@ open files, %d are available.\n", request_max_open_files, real_max_open_files));
SMB_ASSERT(real_max_open_files > 100);
- file_bmap = bitmap_allocate(real_max_open_files);
+ file_bmap = bitmap_talloc(talloc_autofree_context(),
+ real_max_open_files);
if (!file_bmap) {
exit_server("out of memory in file_init");