Without this change, any failed assertion in the second (or a later) test inside a test suite has a chance of double deleting memory, resulting in a heap corruption. See #1096 for details. This leaves alone the test cases where we "just" use cl_git_sandbox_init() and cl_git_sandbox_cleanup(). These methods already take good care to not double delete a repository. Fixes #1096
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
attr | Loading commit data... | |
buf | Loading commit data... | |
checkout | Loading commit data... | |
clone | Loading commit data... | |
commit | Loading commit data... | |
config | Loading commit data... | |
core | Loading commit data... | |
date | Loading commit data... | |
diff | Loading commit data... | |
fetchhead | Loading commit data... | |
index | Loading commit data... | |
network | Loading commit data... | |
notes | Loading commit data... | |
object | Loading commit data... | |
odb | Loading commit data... | |
pack | Loading commit data... | |
refs | Loading commit data... | |
repo | Loading commit data... | |
reset | Loading commit data... | |
resources | Loading commit data... | |
revwalk | Loading commit data... | |
stash | Loading commit data... | |
status | Loading commit data... | |
submodule | Loading commit data... | |
threads | Loading commit data... | |
README.md | Loading commit data... | |
clar | Loading commit data... | |
clar_helpers.c | Loading commit data... | |
clar_libgit2.h | Loading commit data... | |
valgrind-supp-mac.txt | Loading commit data... |