summaryrefslogtreecommitdiffstats
path: root/line-log.h
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2017-10-05 22:32:04 +0200
committerJunio C Hamano <gitster@pobox.com>2017-10-06 03:07:17 +0200
commit837e34eba47f209a38fc9ab458bd103fd7515325 (patch)
treeab91a9de784eec03c56b431b51dd4649270cfd9c /line-log.h
parentsha1_file: do not leak `lock_file` (diff)
downloadgit-837e34eba47f209a38fc9ab458bd103fd7515325.tar.xz
git-837e34eba47f209a38fc9ab458bd103fd7515325.zip
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 <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-log.h')
0 files changed, 0 insertions, 0 deletions