diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-08-17 01:34:10 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-08-17 01:34:10 +0200 |
commit | d69467dff3c00ec0a17a5856ccbbe124a8eb7d99 (patch) | |
tree | 06e9ab86fbcfef4793cda138a7b15f2a32ed6c17 | |
parent | b6731ae35b125963a37dcaacaf76169992ad1f67 (diff) |
sfeed_curses: fix a memleak caused by a mistake in refactoring the code
Introduced by a code cleanup/refactor in commit
59ba2ed29bcbe67de6e9ee1e7fb18744f7490c22
-rw-r--r-- | sfeed_curses.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |