Markus Armbruster 58889fe50a net: Use g_new() & friends where that makes obvious sense
g_new(T, n) is neater than g_malloc(sizeof(T) * n).  It's also safer,
for two reasons.  One, it catches multiplication overflowing size_t.
Two, it returns T * rather than void *, which lets the compiler catch
more type errors.

This commit only touches allocations with size arguments of the form
sizeof(T).

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-12-19 13:17:02 +00:00
..
2013-03-25 11:13:10 +01:00
2014-06-27 10:39:10 +02:00
2013-02-01 11:03:02 -06:00
2013-02-01 11:03:02 -06:00
2013-02-27 16:10:47 +01:00
2013-02-01 11:03:02 -06:00
2012-12-19 08:31:29 +01:00