summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
525c815)
Coverity-id: 13931
Signed-off-by: Christian Hesse <mail@eworm.de>
char *buf;
struct strbuf date_buf = STRBUF_INIT;
char *buf;
struct strbuf date_buf = STRBUF_INIT;
- if (readfile(path, &buf, &size))
+ if (readfile(path, &buf, &size)) {
+ free(buf);
if (parse_date(buf, &date_buf) == 0)
result = strtoul(date_buf.buf, NULL, 10);
if (parse_date(buf, &date_buf) == 0)
result = strtoul(date_buf.buf, NULL, 10);