russell/cl-git — pull request #8 by woudshoo (2012-05-04 18:20:51+00:00)
Title: Fixed two memory management problems

I found two problems with foreign memory in git-create-commit and git-create-reference
and after changing these I do not have random crashes anymore in the tests.

in git-create-commit a call to git-tree-close was done on the wrong object

in git-reference-create the main problem was that foreign-free was called on
a variable initialized with (cffi:nullpointer) and not on some allocated object.
(it needed to be allocated anyway because it is a return value.)

In the same branch I have made a small change so that the convert-from-foreign
calls are not needed anymore.