Received: from eggs.gnu.org ([2001:4830:134:3::10]:55586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWnFt-0000Ek-VB for qemu-devel@nongnu.org; Thu, 17 Oct 2013 09:04:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWnFk-0000hL-Du for qemu-devel@nongnu.org; Thu, 17 Oct 2013 09:04:45 -0400 Received: from mail-bk0-x229.google.com ([2a00:1450:4008:c01::229]:46383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWnFk-0000gz-6x for qemu-devel@nongnu.org; Thu, 17 Oct 2013 09:04:36 -0400 Received: by mail-bk0-f41.google.com with SMTP id na10so835453bkb.0 for ; Thu, 17 Oct 2013 06:04:35 -0700 (PDT) Date: Thu, 17 Oct 2013 15:04:33 +0200 From: Stefan Hajnoczi Message-ID: <20131017130433.GB17903@stefanha-thinkpad.redhat.com> References: <1381493315-10999-1-git-send-email-famz@redhat.com> <1381493315-10999-3-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1381493315-10999-3-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 2/2] vmdk: Implment bdrv_get_specific_info List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Fri, Oct 11, 2013 at 08:08:35PM +0800, Fam Zheng wrote: > @@ -814,6 +821,7 @@ static int vmdk_open_desc_file(BlockDriverState *bs, int flags, > ret = -ENOTSUP; > goto exit; > } > + s->create_type = g_strdup(ct); Where is this freed if opening the file fails?