mirror of
https://github.com/mii443/qemu.git
synced 2025-12-12 05:18:37 +00:00
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
@@ -170,7 +170,7 @@ static void applesmc_add_key(struct AppleSMCStatus *s, const char *key,
|
||||
{
|
||||
struct AppleSMCData *def;
|
||||
|
||||
def = qemu_mallocz(sizeof(struct AppleSMCData));
|
||||
def = g_malloc0(sizeof(struct AppleSMCData));
|
||||
def->key = key;
|
||||
def->len = len;
|
||||
def->data = data;
|
||||
|
||||
Reference in New Issue
Block a user