hw/i386/acpi-build.c: Fix memory leak in acpi_build_tables_cleanup()
[qemu/rayw.git] / tests / libqos / malloc-pc.h
blob9f525e3b999399e3acfe638392da57b0b868a020
1 /*
2 * libqos malloc support for PC
4 * Copyright IBM, Corp. 2012-2013
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
13 #ifndef LIBQOS_MALLOC_PC_H
14 #define LIBQOS_MALLOC_PC_H
16 #include "libqos/malloc.h"
18 typedef enum {
19 PC_ALLOC_NO_FLAGS = 0x00,
20 PC_ALLOC_LEAK_WARN = 0x01,
21 PC_ALLOC_LEAK_ASSERT = 0x02,
22 PC_ALLOC_PARANOID = 0x04
23 } PCAllocOpts;
25 QGuestAllocator *pc_alloc_init(void);
26 QGuestAllocator *pc_alloc_init_flags(PCAllocOpts flags);
27 void pc_alloc_uninit(QGuestAllocator *allocator);
29 #endif