summaryrefslogtreecommitdiff
path: root/hw/misc/imx6_src.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/imx6_src.c')
-rw-r--r--hw/misc/imx6_src.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/imx6_src.c b/hw/misc/imx6_src.c
index 79f4375911..7b0e968804 100644
--- a/hw/misc/imx6_src.c
+++ b/hw/misc/imx6_src.c
@@ -151,7 +151,7 @@ static void imx6_defer_clear_reset_bit(int cpuid,
return;
}
- ri = g_malloc(sizeof(struct SRCSCRResetInfo));
+ ri = g_new(struct SRCSCRResetInfo, 1);
ri->s = s;
ri->reset_bit = reset_shift;