From patchwork Thu Jun 6 06:25:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fam Zheng X-Patchwork-Id: 249284 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D89592C02B7 for ; Thu, 6 Jun 2013 16:30:38 +1000 (EST) Received: from localhost ([::1]:41458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkTiW-0006tF-Ut for incoming@patchwork.ozlabs.org; Thu, 06 Jun 2013 02:30:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkTfU-0002Lf-P2 for qemu-devel@nongnu.org; Thu, 06 Jun 2013 02:27:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkTfO-0004Tl-8i for qemu-devel@nongnu.org; Thu, 06 Jun 2013 02:27:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkTfN-0004TZ-Vs for qemu-devel@nongnu.org; Thu, 06 Jun 2013 02:27:22 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r566RLNR018807 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 6 Jun 2013 02:27:21 -0400 Received: from localhost.nay.redhat.com ([10.66.7.14]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r566Qh5S009870; Thu, 6 Jun 2013 02:27:19 -0400 From: Fam Zheng To: qemu-devel@nongnu.org Date: Thu, 6 Jun 2013 14:25:58 +0800 Message-Id: <1370499959-8916-13-git-send-email-famz@redhat.com> In-Reply-To: <1370499959-8916-1-git-send-email-famz@redhat.com> References: <1370499959-8916-1-git-send-email-famz@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com, jcody@redhat.com, Fam Zheng , rjones@redhat.com, stefanha@redhat.com Subject: [Qemu-devel] [PATCH v7 12/13] curl: set s->url to NULL after free. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Fam Zheng --- block/curl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/curl.c b/block/curl.c index bce2e8a..50c7188 100644 --- a/block/curl.c +++ b/block/curl.c @@ -741,6 +741,7 @@ static void curl_close(BlockDriverState *bs) } g_free(s->url); + s->url = NULL; } static int64_t curl_getlength(BlockDriverState *bs)