aboutsummaryrefslogtreecommitdiff
path: root/libflash/file.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-10-28 11:54:23 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-09 13:20:43 +1100
commitbc4fea8dd2e09c1ac59dccf04272c5af70ab10ad (patch)
tree05d675421ebf96b52bccc9f09937a302682736bc /libflash/file.c
parent4744766798df8a295e2b85138ed585a8edfdca7c (diff)
downloadskiboot-bc4fea8dd2e09c1ac59dccf04272c5af70ab10ad.zip
skiboot-bc4fea8dd2e09c1ac59dccf04272c5af70ab10ad.tar.gz
skiboot-bc4fea8dd2e09c1ac59dccf04272c5af70ab10ad.tar.bz2
Free bl_prot_range on file_exit_close()
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> Reviewed-by: Cyril Bur <cyrilbur@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash/file.c')
-rw-r--r--libflash/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libflash/file.c b/libflash/file.c
index df11271..0dbe610 100644
--- a/libflash/file.c
+++ b/libflash/file.c
@@ -277,6 +277,7 @@ void file_exit(struct blocklevel_device *bl)
{
struct file_data *file_data;
if (bl) {
+ free(bl->ecc_prot.prot);
file_data = container_of(bl, struct file_data, bl);
free(file_data->name);
free(file_data);