libgit2/pygit2 — pull request #328 by shinningstar (2014-01-27 07:58:42+00:00)
Title: [Fixbug]: Repository object reference count increase abnormal

For issue #326, Repository object's reference count will be increased abnormally by it's remotes getter function. That is because 'py_args' does not release which hold 1 reference to repository.
This issue stem from my requirement to dealloc repository object for purpose of releasing file descriptor resource occupied by it. When I construct a new repository object, I found that the old one won't be deconstructed since it's reference count can't decrease to zero.