Commit Briefs

Omar Polo

release the memory used by the object cache

Leak spotted by valgrind. ok stsp@


Omar Polo

fix NULL deref in the object cache debug code; ok stsp@

it's not in code compiled by default as it's under GOT_OBJ_CACHE_DEBUG.



Omar Polo

mark check_refcount as static

needed because of -Wmissig-prototypes; ok stsp@



Omar Polo

build with -Wmissing-prototypes

ok stsp@


Stefan Sperling

inline struct got_object_id in struct got_object_qid

Saves us from doing a malloc/free call for every item on the list. ok op@


Stefan Sperling

wrap overlong lines



Christian Weisgerber

switch from SIMPLEQ to equivalent STAILQ macros

The singly-linked tail queue macros were added to OpenBSD 6.9 and are more widely available on other systems. ok stsp






Stefan Sperling

fix build on OpenBSD/sparc64 (gcc)


Stefan Sperling

don't leak objects which can't be cached



Stefan Sperling

don't cache objects larger than 1MB


Stefan Sperling

fix build with -DGOT_OBJ_CACHE_DEBUG



joshua stein

got_error_from_errno -> got_error_prefix_errno

also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)