Max Reitz 02004bd4ba qcow2: Use g_try_new0() for cache array
With a variable cache size, the number given to qcow2_cache_create() may
be huge. Therefore, use g_try_new0().

While at it, use g_new0() instead of g_malloc0() for allocating the
Qcow2Cache object.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-08-20 11:51:28 +02:00
..
2014-07-15 15:34:13 +02:00
2014-08-15 15:07:14 +02:00
2014-08-20 11:51:28 +02:00
2014-08-20 11:51:28 +02:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-08-15 15:07:14 +02:00
2014-08-15 15:07:14 +02:00