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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to