From aaa24bdd30303128bded8487cd9f63b54c3b8dcd Mon Sep 17 00:00:00 2001
From: Lars Hjemli
Date: Sat, 16 Dec 2006 14:58:20 +0100
Subject: Add cgit_free_commitinfo() and use where needed

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
---
 shared.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'shared.c')

diff --git a/shared.c b/shared.c
index 4574120..b576df8 100644
--- 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;
+}
-- 
cgit v1.2.3-54-g00ecf