global: free the error message when exiting a thread

When we free the global state at thread termination, we must also free
the error message in order not to leak the string once per thread.
Remove unused buf variable from path/core test.
Add a note about cert check in the CHANGELOG
Added test for stashing files in ignored directories
Correctly handle getaddrinfo return result

The getaddrinfo function indicates failure with a non-zero return code,
but this code is not necessarily negative. On platforms like Android
where the code is positive, a failed call causes libgit2 to segfault.
Merge pull request #2570 from cirosantilli/rm-unused-var

Remove unused buf variable from path/core test.
Introduce GIT_ALIGN
Ensure pool data is aligned on an 8 byte boundary
The raw index buffer content is not guaranteed to be aligned

* Ensure alignment by copying the content into a structure on the stack
Fixed merge REUC test for big-endian 64-bit
Fixed odb foreach test failure for big-endian 64-bit
Silence uninitialized warning
Ensure patch is initialized to zero, otherwise, the allocated flag may be set
Silence unused return value warning
Recurse ignored directories when stashing
Merge pull request #2559 from libgit2/cmn/free-tls-error

global: free the error message when exiting a thread
Merge pull request #2582 from swansontec/master

Correctly handle getaddrinfo return result
Merge pull request #2584 from jacquesg/pool-alignment

Pool/Index data is not aligned
Merge pull request #2581 from jacquesg/stash-ignored-directories

Stash ignored directories
the wiki, it is dead