From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7WXn-0002Gm-F7 for qemu-devel@nongnu.org; Thu, 29 Apr 2010 12:24:55 -0400 Received: from [140.186.70.92] (port=60114 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7WXl-0002F6-Qk for qemu-devel@nongnu.org; Thu, 29 Apr 2010 12:24:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7WXk-0003dU-Jh for qemu-devel@nongnu.org; Thu, 29 Apr 2010 12:24:53 -0400 Received: from david.siemens.de ([192.35.17.14]:16678) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7WXk-0003dK-8q for qemu-devel@nongnu.org; Thu, 29 Apr 2010 12:24:52 -0400 Message-ID: <4BD9B2D2.9040208@siemens.com> Date: Thu, 29 Apr 2010 18:24:50 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] block: Release allocated options after bdrv_open List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel , Gerd Hoffmann They aren't used afterwards nor supposed to be stored by a bdrv_create handler. Signed-off-by: Jan Kiszka --- block.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 7974215..f228d8d 100644 --- a/block.c +++ b/block.c @@ -411,6 +411,7 @@ int bdrv_open(BlockDriverState *bs, const char *filename, int flags, } ret = bdrv_create(bdrv_qcow2, tmp_filename, options); + free_option_parameters(options); if (ret < 0) { return ret; }