[Skiboot] [trivial PATCH] opal-prd: Fix memory leak
Jeremy Kerr
jk at ozlabs.org
Mon Oct 16 16:55:36 AEDT 2017
Hi Vasant,
> --- a/external/opal-prd/i2c.c
> +++ b/external/opal-prd/i2c.c
> @@ -193,6 +193,7 @@ static void i2c_add_bus(uint32_t chip, uint32_t engine, uint32_t port,
> if (asprintf(&dn, "/dev/%s", devname) < 0) {
> pr_log(LOG_ERR, "I2C: Error creating devpath for %s: %m",
> devname);
> + free(b);
> return;
> }
>
Looks good, thanks.
Acked-by: Jeremy Kerr <jk at ozlabs.org>
Cheers,
Jeremy
More information about the Skiboot
mailing list