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