]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
Add cgit_free_commitinfo() and use where needed
[ps-cgit] / shared.c
index 4574120cafa5c6900741dc0fbe83325d3f89eb72..b576df8496f3cdbc1767ae68b858ccf753896521 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -88,3 +88,13 @@ void cgit_querystring_cb(const char *name, const char *value)
        }
 }
 
+void *cgit_free_commitinfo(struct commitinfo *info)
+{
+       free(info->author);
+       free(info->author_email);
+       free(info->committer);
+       free(info->committer_email);
+       free(info->subject);
+       free(info);
+       return NULL;
+}