From 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Sat, 20 Aug 2011 22:09:37 -0500 Subject: Use glib memory allocation and free functions qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori --- qerror.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qerror.c') diff --git a/qerror.c b/qerror.c index 69c1bc9..3d64b80 100644 --- a/qerror.c +++ b/qerror.c @@ -242,7 +242,7 @@ QError *qerror_new(void) { QError *qerr; - qerr = qemu_mallocz(sizeof(*qerr)); + qerr = g_malloc0(sizeof(*qerr)); QOBJECT_INIT(qerr, &qerror_type); return qerr; @@ -501,5 +501,5 @@ static void qerror_destroy_obj(QObject *obj) qerr = qobject_to_qerror(obj); QDECREF(qerr->error); - qemu_free(qerr); + g_free(qerr); } -- cgit v1.1