summaryrefslogtreecommitdiffstats
path: root/third_party/jpeg-xl/lib/jxl/memory_manager_internal.cc
blob: 87727e75cd35498805f5c548fd012a07f10ff749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) the JPEG XL Project Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

#include "lib/jxl/memory_manager_internal.h"

#include <stdlib.h>

namespace jxl {

void* MemoryManagerDefaultAlloc(void* opaque, size_t size) {
  return malloc(size);
}

void MemoryManagerDefaultFree(void* opaque, void* address) { free(address); }

}  // namespace jxl