Message ID | 20140627184220.52216.78040.stgit@seurat.1015granger.net |
---|---|
State | Accepted |
Headers | show
Return-Path: <fedfs-utils-devel-bounces@oss.oracle.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 324051400DE for <incoming@patchwork.ozlabs.org>; Sat, 28 Jun 2014 04:42:38 +1000 (EST) Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s5RIgYiY015348 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 27 Jun 2014 18:42:35 GMT Received: from oss.oracle.com (oss-external.oracle.com [137.254.96.51]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s5RIgY1K023124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Jun 2014 18:42:34 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from <fedfs-utils-devel-bounces@oss.oracle.com>) id 1X0b6Y-0000jw-7W; Fri, 27 Jun 2014 11:42:34 -0700 Received: from ucsinet22.oracle.com ([156.151.31.94]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from <chucklever@gmail.com>) id 1X0b6N-0000jE-UR for fedfs-utils-devel@oss.oracle.com; Fri, 27 Jun 2014 11:42:24 -0700 Received: from userp1020.oracle.com (userp1020.oracle.com [156.151.31.79]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s5RIgN8U022414 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <fedfs-utils-devel@oss.oracle.com>; Fri, 27 Jun 2014 18:42:23 GMT Received: from mail-ie0-f176.google.com (mail-ie0-f176.google.com [209.85.223.176]) by userp1020.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s5RIgMhS011612 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for <fedfs-utils-devel@oss.oracle.com>; Fri, 27 Jun 2014 18:42:23 GMT Authentication-Results: userp1020.oracle.com; dkim=pass reason="2048-bit key" header.d=gmail.com header.i=@gmail.com header.b=Jr0hLGya Received: by mail-ie0-f176.google.com with SMTP id rd18so4755165iec.21 for <fedfs-utils-devel@oss.oracle.com>; Fri, 27 Jun 2014 11:42:22 -0700 (PDT) X-Received: by 10.51.17.2 with SMTP id ga2mr14758336igd.16.1403894542084; Fri, 27 Jun 2014 11:42:22 -0700 (PDT) Received: from seurat.1015granger.net ([2604:8800:100:81fc:20c:29ff:fe44:ec31]) by mx.google.com with ESMTPSA id kb7sm15762423igb.7.2014.06.27.11.42.21 for <fedfs-utils-devel@oss.oracle.com> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jun 2014 11:42:21 -0700 (PDT) To: fedfs-utils-devel@oss.oracle.com From: Chuck Lever <chuck.lever@oracle.com> Date: Fri, 27 Jun 2014 14:42:20 -0400 Message-ID: <20140627184220.52216.78040.stgit@seurat.1015granger.net> In-Reply-To: <20140627184201.52216.94080.stgit@seurat.1015granger.net> References: <20140627184201.52216.94080.stgit@seurat.1015granger.net> User-Agent: StGit/0.16 MIME-Version: 1.0 X-Flow-Control-Info: class=Pass-to-MM reputation=ipRisk-All ip=209.85.223.176 ct-class=R5 ct-vol1=-95 ct-vol2=8 ct-vol3=7 ct-risk=45 ct-spam1=70 ct-spam2=7 ct-bulk=6 rcpts=1 size=642 X-Sendmail-CM-Score: 0.00% X-Sendmail-CM-Analysis: v=2.1 cv=Yoo2GeoX c=1 sm=1 tr=0 a=nV8NoSP4IyOTV/bQfbQ6VA==:117 a=dzsqy3y4QnMA:10 a=RwtHM_jfltYA:10 a=dPGociXpb70A:10 a=IkcTkHD0fZMA:10 a=xqWC_Br6kY4A:10 a=yPCof4ZbAAAA:8 a=Lb1rMZzfAAAA:8 a=1XWaLZrsAAAA:8 a=YjYxlPB_97dOpztO3PUA:9 a=QEXdDO 2ut3YA:10 a=7DSvI1NPTFQA:10 X-Sendmail-CT-RefID: str=0001.0A090204.53ADBB0F.0063, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-Sendmail-CT-Classification: not spam Subject: [fedfs-utils] [PATCH 1/9] nfsref: Fix double-free in nfsref_add_build_fsloc() X-BeenThere: fedfs-utils-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list Reply-To: fedfs-utils Developers <fedfs-utils-devel@oss.oracle.com> List-Id: fedfs-utils Developers <fedfs-utils-devel.oss.oracle.com> List-Unsubscribe: <https://oss.oracle.com/mailman/listinfo/fedfs-utils-devel>, <mailto:fedfs-utils-devel-request@oss.oracle.com?subject=unsubscribe> List-Archive: <http://oss.oracle.com/pipermail/fedfs-utils-devel> List-Post: <mailto:fedfs-utils-devel@oss.oracle.com> List-Help: <mailto:fedfs-utils-devel-request@oss.oracle.com?subject=help> List-Subscribe: <https://oss.oracle.com/mailman/listinfo/fedfs-utils-devel>, <mailto:fedfs-utils-devel-request@oss.oracle.com?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: fedfs-utils-devel-bounces@oss.oracle.com Errors-To: fedfs-utils-devel-bounces@oss.oracle.com X-Source-IP: acsinet22.oracle.com [141.146.126.238] |
diff --git a/src/nfsref/add.c b/src/nfsref/add.c index f18f339cf0ab..865adc0301e2 100644 --- a/src/nfsref/add.c +++ b/src/nfsref/add.c @@ -149,7 +149,6 @@ nfsref_add_build_fsloc(const char *server, const char *rootpath, retval = nsdb_posix_to_path_array(rootpath, &new->nfl_rootpath); if (retval != FEDFS_OK) { - free(new->nfl_hostname); nfs_free_location(new); return retval; }
nfs_free_location() already frees new->nfl_hostname. Fixes: 538e6282 (nfsref: Introduce the "nfsref" command) Signed-off-by: Chuck Lever <chuck.lever@oracle.com> --- src/nfsref/add.c | 1 - 1 file changed, 1 deletion(-)