aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--ui-plain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui-plain.c b/ui-plain.c
index e4beb99..4c73607 100644
--- a/ui-plain.c
+++ b/ui-plain.c
@@ -84,10 +84,8 @@ static void print_dir(const unsigned char *sha1, const char *base,
slash = strrchr(fullpath, '/');
if (slash)
*(slash + 1) = 0;
- else {
- free(fullpath);
+ else
fullpath = NULL;
- }
html("<li>");
cgit_plain_link("../", NULL, NULL, ctx.qry.head, ctx.qry.sha1,
fullpath);