From pe@iki.fi Sun Aug  3 16:52:00 1997
Date: Sun, 3 Aug 1997 16:51:52 +0300 (EEST)
From: Pasi Eronen <pe@iki.fi>
To: HTDig mailing list <htdig@sdsu.edu>
Subject: A bug in htmerge: Memory usage cut to half!

Hi again!

As I wrote a few hours ago, I might "some day" take a look
at htmerge's memory hogging. Well, I just did, and managed
to cut the memory consumption to half by just inserting one
source line to htmerge/docs.c:

[removed]

"Ooops" :-)

Memory consumption (that is, bytes of memory allocated before the
line "if (verbose)") dropped on my system from 34.2 MB to 17.5 MB. 
But the day ain't over yet...

This patch is also available at <http://www.iki.fi/pe/htdig/>.

Best regards,
Pasi

---
Pasi Eronen <pe@iki.fi>, +358-50-5123499

*** htmerge/docs.cc.orig	Sun Aug  3 16:36:34 1997
--- htmerge/docs.cc	Sun Aug  3 16:36:45 1997
***************
*** 72,75 ****
--- 72,76 ----
  	    }
  	}
+ 	delete ref;
      }
      if (verbose)
