mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 19:14:58 -06:00
vl: free err
err is not freed after use, thus causing memory leak. This patch fixes it. Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> Cc: qemu-trivial@nongnu.org Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
3952651a75
commit
3a9cbfe009
1 changed files with 1 additions and 0 deletions
1
vl.c
1
vl.c
|
@ -2918,6 +2918,7 @@ out:
|
||||||
g_free(dummy);
|
g_free(dummy);
|
||||||
if (err) {
|
if (err) {
|
||||||
qerror_report_err(err);
|
qerror_report_err(err);
|
||||||
|
error_free(err);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue