about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--ext/unicorn_http/unicorn_http.rl3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl
index 94b5355..f296637 100644
--- a/ext/unicorn_http/unicorn_http.rl
+++ b/ext/unicorn_http/unicorn_http.rl
@@ -426,8 +426,7 @@ static void hp_mark(void *ptr)
 {
   struct http_parser *hp = ptr;
 
-  if (hp->cont)
-    rb_gc_mark(hp->cont);
+  rb_gc_mark(hp->cont);
 }
 
 static VALUE HttpParser_alloc(VALUE klass)