Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui-repolist.c')
-rw-r--r--ui-repolist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index ac1b3e3..4f52e0f 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -18,8 +18,10 @@ static time_t read_agefile(char *path)
char *buf;
struct strbuf date_buf = STRBUF_INIT;
- if (readfile(path, &buf, &size))
+ if (readfile(path, &buf, &size)) {
+ free(buf);
return -1;
+ }
if (parse_date(buf, &date_buf) == 0)
result = strtoul(date_buf.buf, NULL, 10);