Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2013 09:35:44 -0600
From:      Bryan Drewery <bryan@shatow.net>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r257945 - head/usr.sbin/pkg
Message-ID:  <20131111153544.GI98118@admin.xzibition.com>
In-Reply-To: <201311110744.rAB7iA6g041490@svn.freebsd.org>
References:  <201311110744.rAB7iA6g041490@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131111153544.GI98118>