11cb0ef41Sopenharmony_ci/* Copyright 2016 Google Inc. All Rights Reserved. 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ci Distributed under MIT license. 41cb0ef41Sopenharmony_ci See file LICENSE for detail or copy at https://opensource.org/licenses/MIT 51cb0ef41Sopenharmony_ci*/ 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci#include <stdlib.h> 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ci#include "./platform.h" 101cb0ef41Sopenharmony_ci#include <brotli/types.h> 111cb0ef41Sopenharmony_ci 121cb0ef41Sopenharmony_ci/* Default brotli_alloc_func */ 131cb0ef41Sopenharmony_civoid* BrotliDefaultAllocFunc(void* opaque, size_t size) { 141cb0ef41Sopenharmony_ci BROTLI_UNUSED(opaque); 151cb0ef41Sopenharmony_ci return malloc(size); 161cb0ef41Sopenharmony_ci} 171cb0ef41Sopenharmony_ci 181cb0ef41Sopenharmony_ci/* Default brotli_free_func */ 191cb0ef41Sopenharmony_civoid BrotliDefaultFreeFunc(void* opaque, void* address) { 201cb0ef41Sopenharmony_ci BROTLI_UNUSED(opaque); 211cb0ef41Sopenharmony_ci free(address); 221cb0ef41Sopenharmony_ci} 23