repository.c
91.2 KB
-
repository: make cleanup safe for re-use with grafts · 86a4a265
We are allowed to call `git_repository__cleanup` multiple times, and this happens e.g. in rugged if we want to free up resources before GC gets around to them. This means that we cannot leave dangling pointers in it, which we were doing with the grafts. Fix this by setting the pointers to NULL after freeing the resources.
Carlos Martín Nieto committed