patch 7.4.1315
Problem:    Using a channel handle does not allow for freeing it when unused.
Solution:   Add the Channel variable type.
diff --git a/src/misc2.c b/src/misc2.c
index 78a7479..7f33ffa 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1139,6 +1139,9 @@
 # ifdef FEAT_DIFF
     diff_clear(curtab);
 # endif
+# ifdef FEAT_CHANNEL
+    channel_free_all();
+# endif
     clear_sb_text();	      /* free any scrollback text */
 
     /* Free some global vars. */