diff options
author | Joel Stanley <joel@jms.id.au> | 2015-03-04 14:06:22 +1030 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-03-04 15:40:14 +1100 |
commit | 415a34b9681ad29d704b234aaf6cdc7eb689eaa9 (patch) | |
tree | 646f3e2f013214e553554731e0ab80f964fee378 | |
parent | 9dc372a7417570b9194a8552699718a9decbdc3f (diff) | |
download | skiboot-415a34b9681ad29d704b234aaf6cdc7eb689eaa9.zip skiboot-415a34b9681ad29d704b234aaf6cdc7eb689eaa9.tar.gz skiboot-415a34b9681ad29d704b234aaf6cdc7eb689eaa9.tar.bz2 |
libflash: Ensure temporary buffer is freed
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | libflash/libflash.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |