From d2c395757cf5e25357ba85e501799465024ffbcd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 21 Dec 2023 17:14:56 +0100 Subject: [PATCH] fixed bad setup in FileData constructor. --- src/common/filesystem/include/fs_files.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/filesystem/include/fs_files.h b/src/common/filesystem/include/fs_files.h index 463ede7ae4..7702f68de3 100644 --- a/src/common/filesystem/include/fs_files.h +++ b/src/common/filesystem/include/fs_files.h @@ -89,7 +89,8 @@ public: if (own) { length = len; - memory = allocate(len); + memory = malloc(len); + owned = true; if (memory_) memcpy(memory, memory_, len); } else