Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH 1/7] init: plug tiny one-time memory leak

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:49:41

Possibly related (same subject, not in this thread)

Jonathan Nieder [off-list ref] writes:
The buffer used to construct paths like ".git/objects/info" and
".git/objects/pack" is allocated on the heap and never freed.
While at it it might be a good idea to rename its outdated name to
something saner, e.g. object_dir, perhaps?

In v0.99 days, it make some sense to call that sha1_dir because we
prepopulated 256 subdirectories 00-ff in it, and as an afterthought we
reused the buffer to create an extra subdirectory "/pack" there.  But we
do not create the fan-out in advance since 9106c09 (Create object
subdirectories on demand (phase II), 2005-10-09); sha1_dir is not a very
good name for the buffer to hold the path to ".git/objects" anymore.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help