changeset: 7145:f2298b3e6b93 user: Kevin McCarthy <[email protected]> date: Mon Sep 04 09:20:53 2017 -0700 link: http://dev.mutt.org/hg/mutt/rev/f2298b3e6b93
Fix fp resource leak. (closes #3965) Thanks to dcb314 for reporting the issue. changeset: 7146:3c6f3ca07807 user: Kevin McCarthy <[email protected]> date: Mon Sep 04 09:40:44 2017 -0700 link: http://dev.mutt.org/hg/mutt/rev/3c6f3ca07807 Fix rv assignment in mutt_window_mvprintw(). (closes #3964) Mutt doesn't check the return value, so this wasn't causing a bug, but was incorrect. Thanks to dcb314 for reporting the issue. changeset: 7147:7ae5817b5eaf user: Kevin McCarthy <[email protected]> date: Mon Sep 04 09:47:26 2017 -0700 link: http://dev.mutt.org/hg/mutt/rev/7ae5817b5eaf merge stable diffs (25 lines): diff -r ed024cc919fe -r 7ae5817b5eaf curs_lib.c --- a/curs_lib.c Sat Sep 02 12:20:16 2017 -0700 +++ b/curs_lib.c Mon Sep 04 09:47:26 2017 -0700 @@ -665,7 +665,7 @@ va_list ap; int rv; - if ((rv = mutt_window_move (win, row, col) != ERR)) + if ((rv = mutt_window_move (win, row, col)) != ERR) { va_start (ap, fmt); rv = vw_printw (stdscr, fmt, ap); diff -r ed024cc919fe -r 7ae5817b5eaf mutt_ssl_gnutls.c --- a/mutt_ssl_gnutls.c Sat Sep 02 12:20:16 2017 -0700 +++ b/mutt_ssl_gnutls.c Mon Sep 04 09:47:26 2017 -0700 @@ -647,7 +647,8 @@ if (REGCOMP(&preg, "^#H ([a-zA-Z0-9_\\.-]+) ([0-9A-F]{4}( [0-9A-F]{4}){7})[ \t]*$", REG_ICASE) != 0) { - return 0; + safe_fclose (&fp); + return 0; } buf[0] = '\0';
