summaryrefslogtreecommitdiff
path: root/src/odb_mempack.c
Commit message (Collapse)AuthorAgeFilesLines
* mempack: expose clear functionEdward Thomson2015-09-111-4/+1
|
* Removing memory leak in mempack's freeBryan Woods2015-09-111-2/+6
| | | | It calls git_mempack_reset which reallocates the object array. git_oidmap_free is now called on it explicitly.
* Fixing dangling pointers in git_mempack_resetBryan Woods2015-09-101-0/+3
| | | | git_mempack_reset was leaving free'd pointers in the oidmap.
* Remove extra semicolon outside of a functionStefan Widgren2015-02-151-1/+1
| | | | | Without this change, compiling with gcc and pedantic generates warning: ISO C does not allow extra ‘;’ outside of a function.
* Make our overflow check look more like gcc/clang'sEdward Thomson2015-02-131-2/+3
| | | | | | | | | Make our overflow checking look more like gcc and clang's, so that we can substitute it out with the compiler instrinsics on platforms that support it. This means dropping the ability to pass `NULL` as an out parameter. As a result, the macros also get updated to reflect this as well.
* allocations: test for overflow of requested sizeEdward Thomson2015-02-121-0/+1
| | | | | Introduce some helper macros to test integer overflow from arithmetic and set error message appropriately.
* In-memory packing backendvmg/mempackVicent Marti2014-03-261-0/+182