patch 7.4.1829
Problem: No message on channel log when buffer was freed.
Solution: Log a message.
diff --git a/src/channel.c b/src/channel.c
index c191c2a..aca31a2 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -63,6 +63,8 @@
* is safe to invoke callbacks. */
static int safe_to_invoke_callback = 0;
+static char *part_names[] = {"sock", "out", "err", "in"};
+
#ifdef WIN32
static int
fd_read(sock_T fd, char *buf, size_t len)
@@ -1422,7 +1424,11 @@
chanpart_T *ch_part = &channel->ch_part[part];
if (ch_part->ch_buffer == buf)
+ {
+ ch_logs(channel, "%s buffer has been wiped out",
+ part_names[part]);
ch_part->ch_buffer = NULL;
+ }
}
}
diff --git a/src/version.c b/src/version.c
index fb3b3d4..42bb079 100644
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1829,
+/**/
1828,
/**/
1827,