tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

platform.c (465B)


      1 /* Copyright 2016 Google Inc. All Rights Reserved.
      2 
      3   Distributed under MIT license.
      4   See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
      5 */
      6 
      7 #include "platform.h"
      8 
      9 /* Default brotli_alloc_func */
     10 void* BrotliDefaultAllocFunc(void* opaque, size_t size) {
     11  BROTLI_UNUSED(opaque);
     12  return malloc(size);
     13 }
     14 
     15 /* Default brotli_free_func */
     16 void BrotliDefaultFreeFunc(void* opaque, void* address) {
     17  BROTLI_UNUSED(opaque);
     18  free(address);
     19 }