diff options
| author | Alberto Garcia <berto@igalia.com> | 2018-02-09 16:42:22 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2018-02-13 12:27:17 +0100 |
| commit | de7269d293bc3a7fba98a0f12781eccb4ea4be1e (patch) | |
| tree | cea4e153a80df9187352f738ec720503adde5fb0 /qemu-io.c | |
| parent | c1a4b6f9246bf2841b14b11d4c5a029429f0659a (diff) | |
| download | focaccia-qemu-de7269d293bc3a7fba98a0f12781eccb4ea4be1e.tar.gz focaccia-qemu-de7269d293bc3a7fba98a0f12781eccb4ea4be1e.zip | |
qcow2: Use g_try_realloc() in qcow2_expand_zero_clusters()
g_realloc() aborts the program if it fails to allocate the required amount of memory. We want to detect that scenario and return an error instead, so let's use g_try_realloc(). Signed-off-by: Alberto Garcia <berto@igalia.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-io.c')
0 files changed, 0 insertions, 0 deletions