diff --git a/ui-plain.c b/ui-plain.c index 4c73607..e4beb99 100644 --- a/ui-plain.c +++ b/ui-plain.c @@ -84,8 +84,10 @@ static void print_dir(const unsigned char *sha1, const char *base, slash = strrchr(fullpath, '/'); if (slash) *(slash + 1) = 0; - else + else { + free(fullpath); fullpath = NULL; + } html("