diff options
author | Karl Ramm <kcr@mit.edu> | 2009-03-16 16:04:32 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2009-03-16 16:04:32 +0000 |
commit | a66981912f7056fdd15d4a9bf11478cfb891a2f7 (patch) | |
tree | 15bf07a917d4109fea1a18563efa4276b32d868f /zwgc | |
parent | 8344e6875d8492ee532b3316e970ad79d2a9d5c1 (diff) |
set the initial node refcount to one so they don't get gc'd before the ares callback fires
Diffstat (limited to 'zwgc')
-rw-r--r-- | zwgc/plus.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |