diff options
author | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-10-28 11:54:23 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-09 13:20:43 +1100 |
commit | bc4fea8dd2e09c1ac59dccf04272c5af70ab10ad (patch) | |
tree | 05d675421ebf96b52bccc9f09937a302682736bc /libflash | |
parent | 4744766798df8a295e2b85138ed585a8edfdca7c (diff) | |
download | skiboot-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')
-rw-r--r-- | libflash/file.c | 1 |
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); |