From 415a34b9681ad29d704b234aaf6cdc7eb689eaa9 Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Wed, 4 Mar 2015 14:06:22 +1030 Subject: libflash: Ensure temporary buffer is freed Signed-off-by: Joel Stanley Signed-off-by: Stewart Smith --- 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); -- cgit v1.1