[Skiboot] [trivial PATCH] opal-prd: Fix memory leak
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Sat Jun 10 02:53:18 AEST 2017
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
external/opal-prd/i2c.c | 1 +
1 file changed, 1 insertion(+)
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;
}
--
2.9.3
More information about the Skiboot
mailing list