updated for version 7.0093
diff --git a/src/buffer.c b/src/buffer.c
index e2b3f5d..ea286c5 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3177,6 +3177,16 @@
 {
     mch_settitle(lasttitle, lasticon);
 }
+
+# if defined(EXITFREE) || defined(PROTO)
+    void
+free_titles()
+{
+    vim_free(lasttitle);
+    vim_free(lasticon);
+}
+# endif
+
 #endif /* FEAT_TITLE */
 
 #if defined(FEAT_STL_OPT) || defined(PROTO)