[Skiboot] [PATCH] Free bl_prot_range on file_exit_close()
Samuel Mendoza-Jonas
sam.mj at au1.ibm.com
Wed Oct 28 11:54:23 AEDT 2015
Signed-off-by: Samuel Mendoza-Jonas <sam.mj at au1.ibm.com>
---
external/gard/test/test.sh | 1 -
libflash/file.c | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
delete mode 120000 external/gard/test/test.sh
diff --git a/external/gard/test/test.sh b/external/gard/test/test.sh
deleted file mode 120000
index 386568f..0000000
--- a/external/gard/test/test.sh
+++ /dev/null
@@ -1 +0,0 @@
-../../test/test.sh
\ No newline at end of file
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);
--
2.6.2
More information about the Skiboot
mailing list