summaryrefslogtreecommitdiff
path: root/alpine
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-06-14 16:50:18 -0600
committerEduardo Chappa <chappa@washington.edu>2018-06-14 16:50:18 -0600
commit6fc06defd55e7d00f620d40e52da47bc4c1b3a96 (patch)
tree8a6c410b0f9280f1b218358ac34178d506b104b6 /alpine
parent992277048fb4c5f380edb8e9247b7e721662ca89 (diff)
downloadalpine-6fc06defd55e7d00f620d40e52da47bc4c1b3a96.tar.xz
* More changes to make Valgrind happy.
Diffstat (limited to 'alpine')
-rw-r--r--alpine/alpine.c1
-rw-r--r--alpine/mailcmd.c2
-rw-r--r--alpine/titlebar.c7
-rw-r--r--alpine/titlebar.h1
4 files changed, 10 insertions, 1 deletions
diff --git a/alpine/alpine.c b/alpine/alpine.c
index 917e0cee..825ef09f 100644
--- a/alpine/alpine.c
+++ b/alpine/alpine.c
@@ -3552,6 +3552,7 @@ free_alpine_module_globals(void)
#endif
free_message_queue();
free_mailcmd_globals();
+ free_titlebar_globals();
}
#ifdef WIN32
diff --git a/alpine/mailcmd.c b/alpine/mailcmd.c
index 8f395a1b..bc6cf947 100644
--- a/alpine/mailcmd.c
+++ b/alpine/mailcmd.c
@@ -9907,7 +9907,7 @@ free_mailcmd_globals(void)
* are hacks to free history memory
*/
smime_import_certificate(NULL, NULL, NULL, 0);
- save_prompt(NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL);
+ save_prompt(NULL, NULL, NULL, 0, NULL, NULL, 0L, NULL, NULL, NULL);
cmd_export(NULL, NULL, 0, 0);
simple_export(NULL, NULL, CharStar, NULL, NULL);
broach_folder(0, 0, NULL, NULL);
diff --git a/alpine/titlebar.c b/alpine/titlebar.c
index dffdb40d..9f7d3564 100644
--- a/alpine/titlebar.c
+++ b/alpine/titlebar.c
@@ -1261,3 +1261,10 @@ newmail_check_point_cue(int onoroff)
mswin_setcursor (MSWIN_CURSOR_ARROW);
#endif
}
+
+void
+free_titlebar_globals(void)
+{
+ if(as_fname) fs_give((void **) &as_fname);
+ if(as_cname) fs_give((void **) &as_cname);
+}
diff --git a/alpine/titlebar.h b/alpine/titlebar.h
index 41fe3801..f0f3079c 100644
--- a/alpine/titlebar.h
+++ b/alpine/titlebar.h
@@ -50,6 +50,7 @@ void update_titlebar_lpercent(long);
void titlebar_stream_closing(MAILSTREAM *);
int update_titlebar_status(void);
void check_cue_display(char *);
+void free_titlebar_globals(void);
#endif /* PINE_TITLEBAR_INCLUDED */