svn commit: r334347 - head/lib/libpmc
Eric van Gyzen
eric at vangyzen.net
Tue May 29 19:39:14 UTC 2018
On 05/29/2018 14:07, Matt Macy wrote:
> if (pmc_pmu_pmcallocate(ctrname, &pmc_config) == 0) {
> - if (PMC_CALL(PMCALLOCATE, &pmc_config) < 0)
> - return (errno);
> - free(spec_copy);
> + if (PMC_CALL(PMCALLOCATE, &pmc_config) < 0) {
> + retval = errno;
> + goto out;
> + }
> *pmcid = pmc_config.pm_pmcid;
> - return (0);
> + goto out;
This now returns -1 on the successful path.
Feel free to start throwing things at me now. ;)
Eric
More information about the svn-src-all
mailing list