diff options
-rw-r--r-- | cgit.h | 2 | ||||
-rw-r--r-- | shared.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/cgit.h b/cgit.h index f34395c..7df0e3a 100644 --- a/cgit.h +++ b/cgit.h | |||
@@ -343,7 +343,7 @@ extern void cgit_free_reflist_inner(struct reflist *list); | |||
343 | extern int cgit_refs_cb(const char *refname, const struct object_id *oid, | 343 | extern int cgit_refs_cb(const char *refname, const struct object_id *oid, |
344 | int flags, void *cb_data); | 344 | int flags, void *cb_data); |
345 | 345 | ||
346 | extern void *cgit_free_commitinfo(struct commitinfo *info); | 346 | extern void cgit_free_commitinfo(struct commitinfo *info); |
347 | 347 | ||
348 | void cgit_diff_tree_cb(struct diff_queue_struct *q, | 348 | void cgit_diff_tree_cb(struct diff_queue_struct *q, |
349 | struct diff_options *options, void *data); | 349 | struct diff_options *options, void *data); |
diff --git a/shared.c b/shared.c index a48eea6..3ada875 100644 --- a/shared.c +++ b/shared.c | |||
@@ -95,7 +95,7 @@ struct cgit_repo *cgit_get_repoinfo(const char *url) | |||
95 | return NULL; | 95 | return NULL; |
96 | } | 96 | } |
97 | 97 | ||
98 | void *cgit_free_commitinfo(struct commitinfo *info) | 98 | void cgit_free_commitinfo(struct commitinfo *info) |
99 | { | 99 | { |
100 | free(info->author); | 100 | free(info->author); |
101 | free(info->author_email); | 101 | free(info->author_email); |
@@ -105,7 +105,6 @@ void *cgit_free_commitinfo(struct commitinfo *info) | |||
105 | free(info->msg); | 105 | free(info->msg); |
106 | free(info->msg_encoding); | 106 | free(info->msg_encoding); |
107 | free(info); | 107 | free(info); |
108 | return NULL; | ||
109 | } | 108 | } |
110 | 109 | ||
111 | char *trim_end(const char *str, char c) | 110 | char *trim_end(const char *str, char c) |