aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorHu Tao <hutao@cn.fujitsu.com>2014-08-15 18:13:59 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2014-08-15 18:54:07 +0400
commit3a9cbfe0096ad88d52c39f5a9d03f17251f750a5 (patch)
tree513f23f29d7bbd6ec6f68f3b5ed72ffc02a57d3e /vl.c
parent3952651a75a5b211434e8b676e530d5200ac5b82 (diff)
downloadqemu-3a9cbfe0096ad88d52c39f5a9d03f17251f750a5.zip
qemu-3a9cbfe0096ad88d52c39f5a9d03f17251f750a5.tar.gz
qemu-3a9cbfe0096ad88d52c39f5a9d03f17251f750a5.tar.bz2
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>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 9783133..b796c67 100644
--- a/vl.c
+++ b/vl.c
@@ -2918,6 +2918,7 @@ out:
g_free(dummy);
if (err) {
qerror_report_err(err);
+ error_free(err);
return -1;
}
return 0;