about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-17 19:21:23 +0000
committerEric Wong <e@80x24.org>2017-01-17 19:21:23 +0000
commite9baac1c4f912d6394b021af9037441b1602f431 (patch)
tree0d257ea24d3b770f313651431565ca403739bc1f
parentfa1ce912cbf1bea1274d7cbcb0d657e0bb4814ad (diff)
If I (the person who wrote this) spent a minute figuring out why
it wasn't needed, somebody else might, too.  Save someone else
a minute.
-rw-r--r--ext/clogger_ext/clogger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c
index f29cf26..83ce76a 100644
--- a/ext/clogger_ext/clogger.c
+++ b/ext/clogger_ext/clogger.c
@@ -682,6 +682,7 @@ static VALUE cwrite(struct clogger *c)
 
         if (c->fd >= 0) {
                 write_full(c->fd, RSTRING_PTR(dst), RSTRING_LEN(dst));
+                /* no need for RB_GC_GUARD(dst) here, marked as c->log_buf */
         } else {
                 VALUE logger = c->logger;