From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52565 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUjXO-00046b-4d for qemu-devel@nongnu.org; Fri, 02 Jul 2010 12:56:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUjV9-0004HL-8h for qemu-devel@nongnu.org; Fri, 02 Jul 2010 12:54:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9565) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUjV9-0004H7-1q for qemu-devel@nongnu.org; Fri, 02 Jul 2010 12:54:07 -0400 From: Kevin Wolf Date: Fri, 2 Jul 2010 18:38:23 +0200 Message-Id: <1278088712-12302-15-git-send-email-kwolf@redhat.com> In-Reply-To: <1278088712-12302-1-git-send-email-kwolf@redhat.com> References: <1278088712-12302-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 14/23] blkdebug: Free QemuOpts after having read the config List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org Forgetting to free them means that the next instance inherits all rules and gets its own rules only additionally. Signed-off-by: Kevin Wolf --- block/blkdebug.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/block/blkdebug.c b/block/blkdebug.c index 4ec8ca6..78cbff4 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -267,6 +267,8 @@ static int read_config(BDRVBlkdebugState *s, const char *filename) ret = 0; fail: + qemu_opts_reset(&inject_error_opts); + qemu_opts_reset(&set_state_opts); fclose(f); return ret; } -- 1.6.6.1