--- src/forward.cc 2010-05-04 23:06:00 +0000 +++ src/forward.cc 2010-05-27 00:09:40 +0000 @@ -527,7 +527,10 @@ /* Ditch error page if it was created before. * A new one will be created if there's another problem */ - err = NULL; + if (err) { + errorStateFree(err); + err = NULL; + } /* use eventAdd to break potential call sequence loops and to slow things down a little */ eventAdd("fwdConnectStart", fwdConnectStartWrapper, this, originserver ? 0.05 : 0.005, 0);