| -rw-r--r-- | cgit.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -427,12 +427,6 @@ static int find_current_ref(const char *refname, const unsigned char *sha1, return info->match; } -static void free_refmatch_inner(struct refmatch *info) -{ - if (info->first_ref) - free(info->first_ref); -} - static char *find_default_branch(struct cgit_repo *repo) { struct refmatch info; @@ -448,8 +442,6 @@ static char *find_default_branch(struct cgit_repo *repo) ref = info.first_ref; if (ref) ref = xstrdup(ref); - free_refmatch_inner(&info); - return ref; } |