• Dridi Boukelmoune's avatar
    smd: Plug inconsequential leak · 6b1305fa
    Dridi Boukelmoune authored
    The debug stevedore only acts as a wrapper around the malloc storage, so
    it proxies its initialization method. The allocation of av isn't tracked
    so it leaks when it runs out of scope, along with the copies of values
    assigned to the array.
    
    Since a reference to aav is kept in stevedore::av, we can safely pass
    direct references to arguments to the underlying malloc storage instead
    of copies.
    
    Spotted by asan.
    6b1305fa
Name
Last commit
Last update
..
mgt_stevedore.c Loading commit data...
mgt_storage_persistent.c Loading commit data...
stevedore.c Loading commit data...
stevedore_utils.c Loading commit data...
storage.h Loading commit data...
storage_debug.c Loading commit data...
storage_file.c Loading commit data...
storage_lru.c Loading commit data...
storage_malloc.c Loading commit data...
storage_persistent.c Loading commit data...
storage_persistent.h Loading commit data...
storage_persistent_silo.c Loading commit data...
storage_persistent_subr.c Loading commit data...
storage_simple.c Loading commit data...
storage_simple.h Loading commit data...
storage_umem.c Loading commit data...