From a66981912f7056fdd15d4a9bf11478cfb891a2f7 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 16 Mar 2009 16:04:32 +0000 Subject: set the initial node refcount to one so they don't get gc'd before the ares callback fires --- zwgc/plus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zwgc') diff --git a/zwgc/plus.c b/zwgc/plus.c index 9f445e0..303c2fc 100644 --- a/zwgc/plus.c +++ b/zwgc/plus.c @@ -345,7 +345,7 @@ list_add_notice(notice) /* no entry */ pt = (notnode *)malloc(sizeof(notnode)); pt->notice = notice; - pt->refcount = 0; + pt->refcount = 1; pt->fake_notice = 0; pt->next = notlist[bx]; pt->opcode = notice->z_opcode; -- cgit v1.2.3