From: Li Qiang <liq3ea@163.com>
To: vsementsov@virtuozzo.com, kwolf@redhat.com
Cc: qemu-devel@nongnu.org, liq3ea@gmail.com, Li Qiang <liq3ea@163.com>
Subject: [Qemu-devel] [PATCH] tests: test-bdrv-graph-mod: fix memory leak
Date: Sun, 10 Mar 2019 04:34:08 -0700 [thread overview]
Message-ID: <20190310113408.59912-1-liq3ea@163.com> (raw)
Fixes: 2dbfadf
Spotted by ASAN when 'make check'.
Signed-off-by: Li Qiang <liq3ea@163.com>
---
tests/test-bdrv-graph-mod.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/test-bdrv-graph-mod.c b/tests/test-bdrv-graph-mod.c
index 458dfa6661..8bf0fe735d 100644
--- a/tests/test-bdrv-graph-mod.c
+++ b/tests/test-bdrv-graph-mod.c
@@ -117,6 +117,7 @@ static void test_update_perm_tree(void)
bdrv_unref(bs);
blk_unref(root);
+ error_free(local_err);
}
/*
--
2.17.1
next reply other threads:[~2019-03-10 11:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-10 11:34 Li Qiang [this message]
2019-03-10 14:34 ` [Qemu-devel] [PATCH] tests: test-bdrv-graph-mod: fix memory leak Philippe Mathieu-Daudé
2019-03-12 0:31 ` Li Qiang
2019-03-11 7:55 ` Vladimir Sementsov-Ogievskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190310113408.59912-1-liq3ea@163.com \
--to=liq3ea@163.com \
--cc=kwolf@redhat.com \
--cc=liq3ea@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).