]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: rbd: use VIR_REALLOC in the loop
authorJán Tomko <jtomko@redhat.com>
Fri, 12 Jul 2019 14:09:32 +0000 (16:09 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 12 Jul 2019 15:09:42 +0000 (17:09 +0200)
commitd43bc53eddd49c8c22cb52f8b6554e1f7d4216f8
treef019db94d2e14329b26a0218e18d9a3a97f39704
parent062b4a4cd735d28f5bb33ca4f2950a681d662839
storage: rbd: use VIR_REALLOC in the loop

If there are more than 16 images, the memory allocated in images
might be leaked on subsequent execution(s).

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/storage/storage_backend_rbd.c