Skip to content

Commit

Permalink
opal-prd: Fix memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Acked-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
Vasant Hegde authored and stewartsmith committed Oct 16, 2017
1 parent 965de30 commit 11cbacf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions external/opal-prd/i2c.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 11cbacf

Please sign in to comment.