From: Martin Ågren Date: Thu, 5 Oct 2017 20:32:04 +0000 (+0200) Subject: treewide: prefer lockfiles on the stack X-Git-Tag: v2.16.0-rc0~183^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/837e34eba47f209a38fc9ab458bd103fd7515325?ds=sidebyside;hp=837e34eba47f209a38fc9ab458bd103fd7515325 treewide: prefer lockfiles on the stack 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 lock_file\s*\*"`. Signed-off-by: Martin Ågren Signed-off-by: Junio C Hamano ---