aboutsummaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPan Nengyuan <pannengyuan@huawei.com>2020-02-27 09:29:50 +0800
committerMax Reitz <mreitz@redhat.com>2020-03-11 12:42:30 +0100
commitfc124ea1dbfac2a1d5b851596831c9da746b7b66 (patch)
tree4d4a219616e234bd68fa70722e7ba1d7f54d52e1 /job.c
parent4aebf0f0da4a57204f568deed14661cb37b4ac30 (diff)
qemu-img: free memory before re-assign
collect_image_check() is called twice in img_check(), the filename/format will be alloced without free the original memory. It is not a big deal since the process will exit anyway, but seems like a clean code and it will remove the warning spotted by asan. Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com> Message-Id: <20200227012950.12256-3-pannengyuan@huawei.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'job.c')
0 files changed, 0 insertions, 0 deletions