<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/pack-bitmap.c, branch v2.4.9</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.9</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.9'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-07-15T18:41:24Z</updated>
<entry>
<title>Merge branch 'es/osx-header-pollutes-mask-macro' into maint</title>
<updated>2015-07-15T18:41:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-07-15T18:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3f20927717a8541fe607e4227f16ff6e1a5a6e22'/>
<id>urn:sha1:3f20927717a8541fe607e4227f16ff6e1a5a6e22</id>
<content type='text'>
* es/osx-header-pollutes-mask-macro:
  ewah: use less generic macro name
  ewah/bitmap: silence warning about MASK macro redefinition
</content>
</entry>
<entry>
<title>Merge branch 'sb/test-bitmap-free-at-end' into maint</title>
<updated>2015-06-16T21:33:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-16T21:33:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2cd8ebdd3d28359b7886d994e84a8725394935e7'/>
<id>urn:sha1:2cd8ebdd3d28359b7886d994e84a8725394935e7</id>
<content type='text'>
An earlier leakfix to bitmap testing code was incomplete.

* sb/test-bitmap-free-at-end:
  test_bitmap_walk: free bitmap with bitmap_free
</content>
</entry>
<entry>
<title>Merge branch 'rs/plug-leak-in-pack-bitmaps' into maint</title>
<updated>2015-06-05T19:00:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-05T19:00:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=06629901444888e5fa491c5f5f24ff03686af9a9'/>
<id>urn:sha1:06629901444888e5fa491c5f5f24ff03686af9a9</id>
<content type='text'>
The code to read pack-bitmap wanted to allocate a few hundred
pointers to a structure, but by mistake allocated and leaked memory
enough to hold that many actual structures.  Correct the allocation
size and also have it on stack, as it is small enough.

* rs/plug-leak-in-pack-bitmaps:
  pack-bitmaps: plug memory leak, fix allocation size for recent_bitmaps
</content>
</entry>
<entry>
<title>ewah: use less generic macro name</title>
<updated>2015-06-03T07:04:01Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-06-03T06:39:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=34b935c01f28d34f6764f0e1140ad47e7abdde1b'/>
<id>urn:sha1:34b935c01f28d34f6764f0e1140ad47e7abdde1b</id>
<content type='text'>
The ewah/ewok.h header pollutes the global namespace with
"BITS_IN_WORD", without any specific notion that we are
talking about the bits in an eword_t. We can give this the
more specific name "BITS_IN_EWORD".

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Reviewed-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>test_bitmap_walk: free bitmap with bitmap_free</title>
<updated>2015-05-22T16:03:04Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-05-22T00:53:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d201a1ecdb1231a349d696a2252b7209ef7be103'/>
<id>urn:sha1:d201a1ecdb1231a349d696a2252b7209ef7be103</id>
<content type='text'>
Commit f86a374 (pack-bitmap.c: fix a memleak, 2015-03-30)
noticed that we leak the "result" bitmap. But we should use
"bitmap_free" rather than straight "free", as the former
remembers to free the bitmap array pointed to by the struct.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pack-bitmaps: plug memory leak, fix allocation size for recent_bitmaps</title>
<updated>2015-05-19T16:31:09Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2015-05-18T23:24:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=599dc766e89fe4f964c197f8d109dfc2e3c890ba'/>
<id>urn:sha1:599dc766e89fe4f964c197f8d109dfc2e3c890ba</id>
<content type='text'>
Use an automatic variable for recent_bitmaps, an array of pointers.
This way we don't allocate too much and don't have to free the memory
at the end.  The old code over-allocated because it reserved enough
memory to store all of the structs it is only pointing to and never
freed it.  160 64-bit pointers take up 1280 bytes, which is not too
much to be placed on the stack.

MAX_XOR_OFFSET is turned into a preprocessor constant to make it
constant enough for use in an non-variable array declaration.

Noticed-by: Stefan Beller &lt;stefanbeller@gmail.com&gt;
Suggested-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sb/test-bitmap-free-at-end' into maint</title>
<updated>2015-05-13T21:05:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-05-13T21:05:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=071e93a14844f474d313eec1a035816192616889'/>
<id>urn:sha1:071e93a14844f474d313eec1a035816192616889</id>
<content type='text'>
* sb/test-bitmap-free-at-end:
  pack-bitmap.c: fix a memleak
</content>
</entry>
<entry>
<title>pack-bitmap.c: fix a memleak</title>
<updated>2015-04-13T04:45:27Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2015-03-31T01:22:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f86a3747abc742359397e3050b1fbef297415de5'/>
<id>urn:sha1:f86a3747abc742359397e3050b1fbef297415de5</id>
<content type='text'>
Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/unused-symbols'</title>
<updated>2015-02-11T21:44:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-11T21:44:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c985aaf87909ab7f8194b3cfed3a744cbff78fe9'/>
<id>urn:sha1:c985aaf87909ab7f8194b3cfed3a744cbff78fe9</id>
<content type='text'>
Mark file-local symbols as "static", and drop functions that nobody
uses.

* jc/unused-symbols:
  shallow.c: make check_shallow_file_for_update() static
  remote.c: make clear_cas_option() static
  urlmatch.c: make match_urls() static
  revision.c: make save_parents() and free_saved_parents() static
  line-log.c: make line_log_data_init() static
  pack-bitmap.c: make pack_bitmap_filename() static
  prompt.c: remove git_getpass() nobody uses
  http.c: make finish_active_slot() and handle_curl_result() static
</content>
</entry>
<entry>
<title>Merge branch 'ak/typofixes'</title>
<updated>2015-02-11T21:37:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-11T21:37:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=14f563031d21a26aa28a08f795c6d2c36580a7bf'/>
<id>urn:sha1:14f563031d21a26aa28a08f795c6d2c36580a7bf</id>
<content type='text'>
* ak/typofixes:
  t/lib-terminal.sh: fix typo
  pack-bitmap: fix typo
</content>
</entry>
</feed>
