aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--external/opal-prd/i2c.c1
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;
}