From owner-svn-src-all@FreeBSD.ORG Mon Nov 11 15:35:55 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 00226CF for ; Mon, 11 Nov 2013 15:35:54 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A8E4F201C for ; Mon, 11 Nov 2013 15:35:54 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=date:from:to :cc:subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=sweb; b=MmygoWH//sIMYbiQ1NOnCkRbOzuYKrdKJ i7yggj3es8LvreT8jxllRAViNraDjEwrKvogW/9Q/HNnAIvN3O4WOll/szIVrBUP F8158h/GsADHpfn7iIvLDKJ+MQ/J5Eb2QzqKuKJre5IWvQg6tqOgTksyaQ42hgRu vdrXfjiyhU= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=date:from :to:cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=sweb; bh=FMB6Vbw01/km20S+R5letLFXoLcL0EmfbIe4Tru GAwg=; b=ZLxYKtdUVA/eLVJkp2h6WyeNlFvTJTLLml7lwqiFlu6Y0Oachb7FmfG P23YEUsYrDJ6FLri9LWNCzszABnmhxLVZs57BW3Dj6NTYllhvkmo1TlTDlsrQmp1 dLMniC1i60xCNSSv5ukvTeAG4A2PATU7FVqQoI2vgaWwD/sSGItI= Received: (qmail 37023 invoked from network); 11 Nov 2013 09:35:46 -0600 Received: from unknown (HELO admin.xzibition.com) (bryan@shatow.net@173.160.118.90) by sweb.xzibition.com with ESMTPA; 11 Nov 2013 09:35:46 -0600 Date: Mon, 11 Nov 2013 09:35:44 -0600 From: Bryan Drewery To: Gleb Smirnoff Subject: Re: svn commit: r257945 - head/usr.sbin/pkg Message-ID: <20131111153544.GI98118@admin.xzibition.com> References: <201311110744.rAB7iA6g041490@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lqaZmxkhekPBfBzr" Content-Disposition: inline In-Reply-To: <201311110744.rAB7iA6g041490@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 15:35:55 -0000 --lqaZmxkhekPBfBzr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 11, 2013 at 07:44:10AM +0000, Gleb Smirnoff wrote: > Author: glebius > Date: Mon Nov 11 07:44:09 2013 > New Revision: 257945 > URL: http://svnweb.freebsd.org/changeset/base/257945 >=20 > Log: > Do not use just freed memory. > =20 > Sponsored by: Nginx, Inc. Can you please also MFC this? >=20 > Modified: > head/usr.sbin/pkg/pkg.c >=20 > Modified: head/usr.sbin/pkg/pkg.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/usr.sbin/pkg/pkg.c Mon Nov 11 06:22:29 2013 (r257944) > +++ head/usr.sbin/pkg/pkg.c Mon Nov 11 07:44:09 2013 (r257945) > @@ -323,9 +323,9 @@ parse_fingerprint(yaml_document_t *doc,=20 > static void > free_fingerprint_list(struct fingerprint_list* list) > { > - struct fingerprint* fingerprint; > + struct fingerprint *fingerprint, *tmp; > =20 > - STAILQ_FOREACH(fingerprint, list, next) { > + STAILQ_FOREACH_SAFE(fingerprint, list, next, tmp) { > if (fingerprint->name) > free(fingerprint->name); > free(fingerprint); > _______________________________________________ > svn-src-all@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-all > To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" --lqaZmxkhekPBfBzr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQJ8BAEBCgBmBQJSgPlMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNkZFQkU5OTJGNTI4MERGNDgxMTM2MkE2 RTc4MkFDMDNDOUIwQ0Y5AAoJEG54KsA8mwz5vHUP/jK+yO2he1ZuN7H3s/PfHFvE FxGxHa+A8COKGSXkHhuqnafb72y7EXlnZhZrciKrczeXn9wVMjl7ko0d2n+WXQ0a kIs9aqbm+/zRfdEO/AevyDglLuOO2hpJV6k3RrRc+PRItxOOZveg5ANcgOkHy787 r5ysZ0WePROYZcjSQPUfYjwhmFy+dSQaAQcoN46iJBxZCPxWup4k85Lx+lKxU/8Y 9aMIXWaZMe7j4usadC7FAlTNlHKIqMV82DAiK2CA3UZDeqQ+veBfyJeACbnIy1DO 2cdwCmkt1YTPn+Tny7Q2cwDwGrd33SoriPzbmg5yLUXu472As4wTmHLk5/Lsw1xa fVaHq1ta9aXn3HZcjBwSshu+ewE4AoJBRI/uKx6ZbYz6habchyBaZX1lTOUoE9H/ s8tNNXSlU4v6mK11lEz+JBOvQ0YrhgbpMTXZK4thdLXlKzWQvXEjYmTu6lyX0pCP aE3waq6flmf/h/xGHjE+mZvXvfkUS1HKAmfxv9bzW9pImzAIB6Tf8po/pyeMCgVQ AmHqj5o5Wj0HM1WHyv/Gb8/F/WwQ7MCRVZHwgInyDp/u8gUCkLPtK+l8PlZ/nwHm KThelleIvqi/OIA+hDjc7Gaq2eu6Eg1Iouc7cm2+iyLTnENWMRls3FN66GhmGzvK 6qdb2sRdPqJItiuEllv3 =3a3T -----END PGP SIGNATURE----- --lqaZmxkhekPBfBzr--