• Martin Ågren's avatar
    treewide: prefer lockfiles on the stack · 837e34eb
    Martin Ågren authored
    There is no longer any need to allocate and leak a `struct lock_file`.
    The previous patch addressed an instance where we needed a minor tweak
    alongside the trivial changes.
    Deal with the remaining instances where we allocate and leak a struct
    within a single function. Change them to have the `struct lock_file` on
    the stack instead.
    These instances were identified by running `git grep "^\s*struct
    Signed-off-by: default avatarMartin Ågren <martin.agren@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
wt-status.c 63.3 KB