Markus Armbruster 9de68637df qxl: 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).  Same Coccinelle semantic patch as in commit b45c03f.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2015-11-06 15:42:38 +03:00
..
2014-07-11 10:17:02 +02:00
2015-05-19 11:40:01 +02:00
2015-06-22 18:20:40 +02:00
2015-09-11 10:45:43 +03:00
2014-04-28 10:21:55 +02:00
2015-02-13 14:09:28 +00:00
2015-10-20 09:26:36 +02:00
2015-02-10 09:27:19 +03:00