X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/979db79a80f1926c677691b68eb22b4852a77b50..da1b89710f5eb25297a66613ff3130b2a31cb86a:/ui-plain.c diff --git a/ui-plain.c b/ui-plain.c index 4c73607..58addab 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("