From 9506bdf26c1e98dc369857c45ee079747569f951 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Tue, 22 Nov 2016 14:40:49 -0700 Subject: * Free some allocated memory in the new color code. --- alpine/reply.c | 13 ++++++++++++- pith/pine.hlp | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/alpine/reply.c b/alpine/reply.c index 6d1fef95..b1818b4c 100644 --- a/alpine/reply.c +++ b/alpine/reply.c @@ -2752,7 +2752,18 @@ free_pcolors(PCOLORS **colors) free_color_pair(&(*colors)->stcp); if ((*colors)->prcp) free_color_pair(&(*colors)->prcp); - fs_give((void **)colors); + if ((*colors)->qlcp) + free_color_pair(&(*colors)->qlcp); + if ((*colors)->qllcp) + free_color_pair(&(*colors)->qllcp); + if ((*colors)->qlllcp) + free_color_pair(&(*colors)->qlllcp); + if ((*colors)->ntcp) + free_color_pair(&(*colors)->ntcp); + if ((*colors)->rtcp) + free_color_pair(&(*colors)->rtcp); + if ((*colors)->sbcp) + free_color_pair(&(*colors)->sbcp); fs_give((void **)colors); *colors = NULL; } diff --git a/pith/pine.hlp b/pith/pine.hlp index 6b27b01a..e4a5eca3 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 183 2016-11-21 20:50:35 +Alpine Commit 184 2016-11-22 14:40:45 ============= h_news ================= -- cgit v1.2.3-70-g09d2