[PATCH] -z leaked sockets and memory with no unread news present
Urs Janßen <[email protected]> Mon, 18 Jan 2016 12:56:57 +0100
| Newsgroups | gmane.network.tin.devel |
|---|---|
| Message-ID | <[email protected]> |
--ew6BAiZeqk4r7MaW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
attached fix ensures a clean exit with -z and no unread news.
@Dennis, this doesn't address the -w issue.
--ew6BAiZeqk4r7MaW
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="main.c.diff"
=== modified file 'src/main.c'
--- src/main.c 2015-11-22 00:46:22 +0000
+++ src/main.c 2016-01-18 11:52:10 +0000
@@ -364,8 +364,8 @@
if (start_any_unread) {
batch_mode = TRUE; /* Suppress some unwanted on-screen garbage */
if ((start_groupnum = check_start_save_any_news(START_ANY_NEWS, catchup)) == -1) {
- free_all_arrays();
- giveup(); /* No new/unread news so exit */
+ batch_mode = FALSE;
+ tin_done(EXIT_SUCCESS);
}
batch_mode = FALSE;
}
--ew6BAiZeqk4r7MaW
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KdGluLWRldiBt
YWlsaW5nIGxpc3QKdGluLWRldkB0aW4ub3JnCmh0dHA6Ly9saXN0cy50aW4ub3JnL2NnaS1iaW4v
bWFpbG1hbi9saXN0aW5mby90aW4tZGV2Cg==
--ew6BAiZeqk4r7MaW--