From d69467dff3c00ec0a17a5856ccbbe124a8eb7d99 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 17 Aug 2022 01:34:10 +0200 Subject: sfeed_curses: fix a memleak caused by a mistake in refactoring the code Introduced by a code cleanup/refactor in commit 59ba2ed29bcbe67de6e9ee1e7fb18744f7490c22 --- sfeed_curses.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sfeed_curses.c b/sfeed_curses.c index b1a56d6..4d2b698 100644 --- a/sfeed_curses.c +++ b/sfeed_curses.c @@ -1914,6 +1914,7 @@ urls_free(struct urls *urls) urls->len--; free(urls->items[urls->len]); } + free(urls->items); urls->items = NULL; urls->len = 0; urls->cap = 0; -- cgit v1.2.3