1
0
mirror of https://github.com/git/git.git synced 2025-03-23 15:16:23 +00:00
git/builtin
Jonathan Nieder 9173912be3 init: plug tiny one-time memory leak
The buffer used to construct paths like ".git/objects/info" and
".git/objects/pack" is allocated on the heap and never freed.

So free it.  While at it, factor out the relevant code into its own
function and rename the sha1_dir variable to object_directory (to
match the change in everyday usage after the renaming of
SHA1_FILE_DIRECTORY in v0.99~603^2~7, 2005).

Noticed by valgrind while setting up tests (in test-lib).

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2010-10-06 10:46:05 -07:00
..
2010-08-22 20:18:37 -07:00
2010-06-27 12:07:55 -07:00
2010-09-27 10:54:17 -07:00
2010-08-31 16:23:31 -07:00
2010-08-31 16:23:31 -07:00
2010-08-31 16:23:31 -07:00
2010-10-06 10:46:05 -07:00
2010-09-30 12:22:02 -07:00
2010-08-12 18:07:09 -07:00
2010-09-03 09:43:41 -07:00
2010-07-07 11:18:26 -07:00