From f9a65caf9e600e57893b293394b70b621c2b5d25 Mon Sep 17 00:00:00 2001 From: Steve Dee Date: Sun, 29 Dec 2013 13:38:20 +0100 Subject: [PATCH] Horrible hack to prevent lin from getting GCed Fixes the daemon mode noun leak, sort of, if you squint at it. Better solution soon to come. --- v/loop.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/v/loop.c b/v/loop.c index e6f885c7a1..3186e24b6c 100644 --- a/v/loop.c +++ b/v/loop.c @@ -1914,6 +1914,13 @@ _lo_mark() siz_w = u2_cm_mark_internal(); siz_w += _lo_mark_reck(u2_Host.arv_u); + // XX get rid of this + if ( u2_yes == u2_Host.ops_u.dem && + NULL != u2_Host.uty_u && + u2_nul != u2_Host.uty_u->lin ) { + siz_w += u2_cm_mark_noun(u2_Host.uty_u->lin); + } + return siz_w; }