| -rw-r--r-- | ui-repolist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 4f52e0f..ac1b3e3 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -18,10 +18,8 @@ static time_t read_agefile(char *path) char *buf; struct strbuf date_buf = STRBUF_INIT; - if (readfile(path, &buf, &size)) { - free(buf); + if (readfile(path, &buf, &size)) return -1; - } if (parse_date(buf, &date_buf) == 0) result = strtoul(date_buf.buf, NULL, 10); |