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/osd/modules/file/stdfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/osd/modules/file/stdfile.cpp') diff --git a/src/osd/modules/file/stdfile.cpp b/src/osd/modules/file/stdfile.cpp index 611775ab0ba..cb1f1b536b2 100644 --- a/src/osd/modules/file/stdfile.cpp +++ b/src/osd/modules/file/stdfile.cpp @@ -197,7 +197,7 @@ osd_directory_entry *osd_stat(const std::string &path) // create an osd_directory_entry; be sure to make sure that the caller can // free all resources by just freeing the resulting osd_directory_entry - result = (osd_directory_entry *)osd_malloc_array(sizeof(*result) + path.length() + 1); + result = (osd_directory_entry *)malloc(sizeof(*result) + path.length() + 1); strcpy((char *)(result + 1), path.c_str()); result->name = (char *)(result + 1); result->type = ENTTYPE_NONE; -- cgit v1.2.3-70-g09d2