diff options
author | Martin Ågren <martin.agren@gmail.com> | 2017-09-09 08:57:16 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-10 16:36:58 +0900 |
commit | 851e1fbd01250f56a6e479e1addada220a56e1f7 (patch) | |
tree | c4e44d4a0281378c83cc09983e01c66ede74f88c /Documentation/technical/api-tree-walking.txt | |
parent | c299468bd7bd5a6a8ab7350c260bb8d548cd1e1e (diff) | |
download | git-851e1fbd01250f56a6e479e1addada220a56e1f7.tar.gz git-851e1fbd01250f56a6e479e1addada220a56e1f7.tar.xz |
refs/files-backend: fix memory leak in lock_ref_for_update
After the previous patch, none of the functions we call hold on to
`referent.buf`, so we can safely release the string buffer before
returning.
Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/api-tree-walking.txt')
0 files changed, 0 insertions, 0 deletions