mbox series

[0/2] fix two small memleaks

Message ID 20200226033037.18253-1-pannengyuan@huawei.com
Headers show
Series fix two small memleaks | expand

Message

Pan Nengyuan Feb. 26, 2020, 3:30 a.m. UTC
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(+)