diff mbox series

[74/88] balloon: use g_new() family of functions

Message ID 20171006235023.11952-75-f4bug@amsat.org
State New
Headers show
Series use g_new() family of functions | expand

Commit Message

Philippe Mathieu-Daudé Oct. 6, 2017, 11:50 p.m. UTC
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 balloon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/balloon.c b/balloon.c
index 1d720fff81..d77918fd37 100644
--- a/balloon.c
+++ b/balloon.c
@@ -97,7 +97,7 @@  BalloonInfo *qmp_query_balloon(Error **errp)
         return NULL;
     }
 
-    info = g_malloc0(sizeof(*info));
+    info = g_new0(BalloonInfo, 1);
     balloon_stat_fn(balloon_opaque, info);
     return info;
 }