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:
Hu Tao 2014-08-15 18:13:59 +08:00 committed by Michael Tokarev
parent 3952651a75
commit 3a9cbfe009
1 changed files with 1 additions and 0 deletions

1
vl.c
View File

@ -2918,6 +2918,7 @@ out:
g_free(dummy);
if (err) {
qerror_report_err(err);
error_free(err);
return -1;
}
return 0;