tfree obj - stagit - static git page generator
 (HTM) git clone git://src.adamsgaard.dk/stagit
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 512a31e81ff5e697d7ca08b6504309024cd9928d
 (DIR) parent e45eac89b8c2ac5a6d896ac7fd019a1039fa885c
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Wed,  6 Jan 2016 19:11:11 +0100
       
       free obj
       
       Diffstat:
         M stagit.c                            |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/stagit.c b/stagit.c
       t@@ -866,6 +866,8 @@ writerefs(FILE *fp)
                                relpath = "../";
        
                                commitinfo_free(ci);
       +                        git_object_free(obj);
       +                        obj = NULL;
                                git_reference_free(dref);
                                dref = NULL;
                        }
       t@@ -875,6 +877,7 @@ writerefs(FILE *fp)
                }
        
        err:
       +        git_object_free(obj);
                git_reference_free(dref);
        
                for (i = 0; i < refcount; i++)