From: hno <> Date: Tue, 25 Feb 2003 09:17:54 +0000 (+0000) Subject: Don't segfault if failing to load error pages X-Git-Tag: SQUID_3_0_PRE1~314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41c08d8b3c9258f8b4775233528e0eb6735d26bc;p=thirdparty%2Fsquid.git Don't segfault if failing to load error pages --- diff --git a/src/errorpage.cc b/src/errorpage.cc index cd89d5cd41..a52a983c7d 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.185 2003/02/21 22:50:08 robertc Exp $ + * $Id: errorpage.cc,v 1.186 2003/02/25 02:17:54 hno Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -232,8 +232,6 @@ errorTryLoadText(const char *page_name, const char *dir) if (len < 0) { debug(4, 0) ("errorTryLoadText: failed to fully read: '%s': %s\n", path, xstrerror()); - memBufClean(&textbuf); - text = NULL; } file_close(fd);