summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2016-11-22 14:40:49 -0700
committerEduardo Chappa <chappa@washington.edu>2016-11-22 14:40:49 -0700
commit9506bdf26c1e98dc369857c45ee079747569f951 (patch)
treef0fdeae8fc67af733e52bdf0767727cc68246d29
parent65c2c888c9c7b20f8f8ba257211ce4458801c2e9 (diff)
downloadalpine-9506bdf26c1e98dc369857c45ee079747569f951.tar.xz
* Free some allocated memory in the new color code.
-rw-r--r--alpine/reply.c13
-rw-r--r--pith/pine.hlp2
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 =================
<HTML>
<HEAD>