This series fix two small memleaks. 1. 'crypto_opts' forgot to free in qcow2_close(), do this cleanup in qcow2_close(); 2. Do free filename/format in collect_image_check() when we re-allocate it.
Pan Nengyuan (2): block/qcow2: do free crypto_opts in qcow2_close() qemu-img: free memory before re-assign block/qcow2.c | 1 + qemu-img.c | 2 ++ 2 files changed, 3 insertions(+) -- 2.18.2