diff options
author | Russell Belfer <rb@github.com> | 2013-07-22 11:20:34 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-07-22 11:20:34 -0700 |
commit | c77342ef1c956f99f84f217359c73e8de65cdd1c (patch) | |
tree | 7d41919fec048824477be26425d5fcb65994dd48 /tests-clar/diff | |
parent | b71071313f4800840ecc48cb18e5cedec8ef250e (diff) | |
download | libgit2-c77342ef1c956f99f84f217359c73e8de65cdd1c.tar.gz |
Use pool for loose refdb string allocations
Instead of using lots of strdup calls, this adds a memory pool to
the loose refs iteration code and uses it for keeping track of the
loose refs array. Memory usage could probably be reduced even
further by eliminating the vector and just scanning by adding the
strlen of each ref, but that would be a more intrusive changes.
This also updates the error handling to be more thorough about
checking for failed allocations, etc.
Diffstat (limited to 'tests-clar/diff')
0 files changed, 0 insertions, 0 deletions