Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2018 13:36:32 -0500
From:      Eric van Gyzen <eric@vangyzen.net>
To:        Matt Macy <mmacy@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r334345 - head/lib/libpmc
Message-ID:  <54dcd815-c6ea-cc8b-df8c-0486b70bfce7@vangyzen.net>
In-Reply-To: <201805291826.w4TIQD9e084158@repo.freebsd.org>
References:  <201805291826.w4TIQD9e084158@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/29/2018 13:26, Matt Macy wrote:
>  	if (pmc_pmu_pmcallocate(ctrname, &pmc_config) == 0) {
>  		if (PMC_CALL(PMCALLOCATE, &pmc_config) < 0)
>  			return (errno);

                        ^^^^^^
spec_copy is still leaked here.

> +		free(spec_copy);
>  		*pmcid = pmc_config.pm_pmcid;
>  		return (0);
>  	} else {
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54dcd815-c6ea-cc8b-df8c-0486b70bfce7>