MdeModulePkg BrotliLib: Rename function with the specific lib name
[mirror_edk2.git] / MdeModulePkg / Library / BrotliCustomDecompressLib / dec / state.c
index 940abaa..dbe4a36 100644 (file)
@@ -6,7 +6,8 @@
 \r
 #include "./state.h"\r
 \r
-#include <stdlib.h>  /* free, malloc */\r
+//#include <stdlib.h>  /* free, malloc */\r
+#include <BrotliDecompressLibInternal.h>\r
 \r
 #include "../common/types.h"\r
 #include "./huffman.h"\r
@@ -17,12 +18,12 @@ extern "C" {
 \r
 static void* DefaultAllocFunc(void* opaque, size_t size) {\r
   BROTLI_UNUSED(opaque);\r
-  return malloc(size);\r
+  return BrDummyMalloc(size);\r
 }\r
 \r
 static void DefaultFreeFunc(void* opaque, void* address) {\r
   BROTLI_UNUSED(opaque);\r
-  free(address);\r
+  BrDummyFree(address);\r
 }\r
 \r
 void BrotliDecoderStateInit(BrotliDecoderState* s) {\r