libgit2/libgit2 — pull request #527 by arrbee (2012-01-05 19:28:24+00:00)
Title: Fix warnings from valgrind

These fixes are just small things that Valgrind identified. For example, calling `git__rethrow` without a prior `git__throw` ends up generating a warning. We can fix this, but it seemed easier to just use `git__throw.`

The oddest part of these fixes is the rounding up of memory allocations in delta-apply.c and pack.c. Valgrind seems to think that we read (although not write) past the end of these memory allocations, and so adding a little bit of extra memory clears up that warning. I can't find the offending code, but this does seem to work.