From 7c765ea14785a4ad6efd2e30e03447f354bed6b4 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 11 Nov 2016 14:34:46 +0100 Subject: No need for osd_malloc, osd_malloc_array and osd_free (nw) MALLOC_DEBUG not applicable anymore since we use new to allocate in 99.9% of cases --- src/lib/util/corefile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/util/corefile.cpp') diff --git a/src/lib/util/corefile.cpp b/src/lib/util/corefile.cpp index 76b788174ab..264d80f4113 100644 --- a/src/lib/util/corefile.cpp +++ b/src/lib/util/corefile.cpp @@ -1207,7 +1207,7 @@ osd_file::error core_file::load(std::string const &filename, void **data, std::u return osd_file::error::OUT_OF_MEMORY; // allocate memory - *data = osd_malloc(size); + *data = malloc(size); length = std::uint32_t(size); // read the data -- cgit v1.2.3-70-g09d2