diff options
author | Hu Tao <hutao@cn.fujitsu.com> | 2014-08-15 18:13:59 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-08-15 18:54:07 +0400 |
commit | 3a9cbfe0096ad88d52c39f5a9d03f17251f750a5 (patch) | |
tree | 513f23f29d7bbd6ec6f68f3b5ed72ffc02a57d3e /vl.c | |
parent | 3952651a75a5b211434e8b676e530d5200ac5b82 (diff) | |
download | qemu-3a9cbfe0096ad88d52c39f5a9d03f17251f750a5.tar.gz qemu-3a9cbfe0096ad88d52c39f5a9d03f17251f750a5.tar.bz2 qemu-3a9cbfe0096ad88d52c39f5a9d03f17251f750a5.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2918,6 +2918,7 @@ out: g_free(dummy); if (err) { qerror_report_err(err); + error_free(err); return -1; } return 0; |