diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-23 16:04:06 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-24 12:59:15 +1000 |
commit | 8654891fa90161292201b8f7a37e1c1eeef14a71 (patch) | |
tree | edb439ed02e1c9509ba26450c52473dfbe9acfff /libflash | |
parent | a6c668d5d53b3d66df0015b04582187e592f67e9 (diff) | |
download | skiboot-8654891fa90161292201b8f7a37e1c1eeef14a71.zip skiboot-8654891fa90161292201b8f7a37e1c1eeef14a71.tar.gz skiboot-8654891fa90161292201b8f7a37e1c1eeef14a71.tar.bz2 |
libflash/test/test-flash.c: fix memory leak on exit
LeakSanitizer spotted this:
Direct leak of 131072 byte(s) in 1 object(s) allocated from:
#0 0x7fb99e42b850 in malloc (/lib64/libasan.so.4+0xde850)
#1 0x408612 in main libflash/test/test-flash.c:380
#2 0x7fb99d27d509 in __libc_start_main (/lib64/libc.so.6+0x20509)
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash')
-rw-r--r-- | libflash/test/test-flash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libflash/test/test-flash.c b/libflash/test/test-flash.c index 3f77d6f..3c04fd3 100644 --- a/libflash/test/test-flash.c +++ b/libflash/test/test-flash.c @@ -454,6 +454,7 @@ int main(void) printf("Test ECC erase pass\n"); flash_exit(bl); + free(test); return 0; } |