• Kirill Smelkov's avatar
    bigfile: RAM must be explicitly free'ed after close · f688a31d
    Kirill Smelkov authored
    Else on-heap allocated RAM object is leaked. Fixes e.g. the following
    error on ASAN:
    	Direct leak of 56 byte(s) in 1 object(s) allocated from:
    	    #0 0x7fc9ef390518 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9518)
    	    #1 0x555ca792f309 in zalloc include/wendelin/utils.h:67
    	    #2 0x555ca7935f9a in ram_limited_new bigfile/tests/../../t/t_utils.c:35
    	    #3 0x555ca793a0ba in test_file_access_synthetic bigfile/tests/test_virtmem.c:292
    	    #4 0x555ca7967bc4 in main bigfile/tests/test_virtmem.c:1121
    	    #5 0x7fc9ef0e909a in __libc_start_main ../csu/libc-start.c:308