[Skiboot] [PATCH 12/13] libflash/test/test-blocklevel: fix memory leak on exit
Stewart Smith
stewart at linux.vnet.ibm.com
Wed Aug 23 17:21:22 AEST 2017
==8304==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 4096 byte(s) in 1 object(s) allocated from:
#0 0x7f70eda8f850 in malloc (/lib64/libasan.so.4+0xde850)
#1 0x408ba0 in main libflash/test/test-blocklevel.c:298
#2 0x7f70ec8e1509 in __libc_start_main (/lib64/libc.so.6+0x20509)
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
libflash/test/test-blocklevel.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libflash/test/test-blocklevel.c b/libflash/test/test-blocklevel.c
index cbf7413b059a..3787cd6d5c32 100644
--- a/libflash/test/test-blocklevel.c
+++ b/libflash/test/test-blocklevel.c
@@ -434,5 +434,7 @@ int main(void)
return 1;
}
+ free(buf);
+
return 0;
}
--
2.13.5
More information about the Skiboot
mailing list