summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed_curses.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfeed_curses.c b/sfeed_curses.c
index 50080cf..1abb046 100644
--- a/sfeed_curses.c
+++ b/sfeed_curses.c
@@ -1791,6 +1791,7 @@ item_row_get(struct pane *p, off_t pos)
if ((linelen = getline(&line, &linesize, f->fp)) <= 0) {
if (ferror(f->fp))
die("getline: %s", f->path);
+ free(line);
return NULL;
}