about summary refs log tree commit diff stats
path: root/ui-repolist.c
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)
18 char *buf; 18 char *buf;
19 struct strbuf date_buf = STRBUF_INIT; 19 struct strbuf date_buf = STRBUF_INIT;
20 20
21 if (readfile(path, &buf, &size)) 21 if (readfile(path, &buf, &size)) {
22 free(buf);
22 return -1; 23 return -1;
24 }
23 25
24 if (parse_date(buf, &date_buf) == 0) 26 if (parse_date(buf, &date_buf) == 0)
25 result = strtoul(date_buf.buf, NULL, 10); 27 result = strtoul(date_buf.buf, NULL, 10);