jelmer/dulwich — pull request #34 by eberle1080 (2011-11-12 23:37:57+00:00)
Title: free_objects may have tried to free uninitialized / NULL pointers

While I was porting over to python 3, I found a rather nasty bug in the `_diff_tree` C module. Calls to `free_objects` weren't being checked to make sure that the pointers were actually pointing to allocated memory. This adds some checks to make sure invalid pointers aren't freed.