[Skiboot] [PATCH] libflash: Ensure temporary buffer is freed
Joel Stanley
joel at jms.id.au
Wed Mar 4 14:36:22 AEDT 2015
Signed-off-by: Joel Stanley <joel at jms.id.au>
---
libflash/libflash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libflash/libflash.c b/libflash/libflash.c
index 8be73b2..2886fc7 100644
--- a/libflash/libflash.c
+++ b/libflash/libflash.c
@@ -174,7 +174,7 @@ int flash_read_corrected(struct flash_chip *c, uint32_t pos, void *buf,
pos += ECC_BUFFER_SIZE(copylen);
}
- return 0;
+ rc = 0;
err:
free(bufecc);
--
2.1.4
More information about the Skiboot
mailing list