diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2017-06-09 22:23:18 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-10-16 01:17:59 -0500 |
commit | 11cbacf89d1fb19d95526bcdf39be8809789bcf6 (patch) | |
tree | f86dc6ef867cacc0cf9921e7526793b3743128c7 | |
parent | 965de30e9495dbcf8d02c8146c90d63db94ed5ba (diff) | |
download | skiboot-11cbacf89d1fb19d95526bcdf39be8809789bcf6.zip skiboot-11cbacf89d1fb19d95526bcdf39be8809789bcf6.tar.gz skiboot-11cbacf89d1fb19d95526bcdf39be8809789bcf6.tar.bz2 |
opal-prd: Fix memory leak
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>
-rw-r--r-- | external/opal-prd/i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/external/opal-prd/i2c.c b/external/opal-prd/i2c.c index fbe2e9b..ba4b3c8 100644 --- 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; } |