On 27.02.20 02:29, Pan Nengyuan wrote: > 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. > > v2->v1: > - Instead of freeing part of fields in collect_image_check(), do discard the > old check object and allocate a new one in the caller to make more > sense.(suggested by Max Reitz) > > 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(+)
Thanks, applied to my block branch: https://git.xanclic.moe/XanClic/qemu/commits/branch/block Max
signature.asc
Description: OpenPGP digital signature