Projects / memwatch


memwatch is an ANSI C fault tolerant memory leak and corruption detection tool. Basically, you add a header file to your souce code files, and compile with MEMWATCH defined or not. Check the README and USING files for more instructions.

Operating Systems

Recent releases

  •  20 May 2003 11:51

    Release Notes: This version fixes a mwMalloc() bug for very large allocations (4GB on 32bits), and adds ULONG_LONG_MAX as a 64-bit detector.

    •  18 Sep 2002 15:24

      Release Notes: An error in which mwRealloc() could leave the mutex locked was fixed. The licence was changed to the GPL. C++ array allocation was added.

      •  31 May 2001 14:41

        Release Notes: Fixes for some harmless compile warnings when mutexes were not available.

        •  03 May 2001 12:49

          Release Notes: This release includes additional auto detection of 64-bit platforms, mwRelink() no longer prints out a garbage pointer sometimes, an array destructor for C++, and mutex support.

          •  20 Oct 1999 14:38

            Release Notes: Fixes for a couple of high-sensitivity warnings and the "might get clobbered" gcc warning that happened when aggressive inlining was enabled.

            Recent comments

            07 May 2001 10:19 jli

            Re: Can't contact author & missing file
            Turns out my server got D.O.S:ed by some script kiddie in the Netherlands. Updated ProFTPd, so it should be OK now. Anybody reading this and unaware of this vulnerability, read this announcement (

            07 May 2001 09:36 jli

            Re: Can't contact author & missing file
            Yep, there was a brief period where a faulty 2.66 was up there (a day, approximately). Also, my server was down during this weekend, so any mails directed there -may- have bounced. Finally, note that my email domain has changed, is no longer active, use (if that was not the case).

            "Misery loves company"... or something... :)


            06 May 2001 19:12 learfox

            Can't contact author & missing file
            In the README it says a demo called test.c
            can be compiled and reviewed for tutorial
            purposes but the latest distribution did not have
            that file and when I tried to e-mail them my
            mail bounced.

            Hope someone is reading this, the header files
            were not very intuitive and I would really like
            to see a demo source.

            21 Dec 2000 15:13 kapheine

            Definitely worth a try
            After trying a few other memory watchers, this is the one I have settled down with. It does not have as many features as other memory watchers, like dmalloc, but it is very quick to setup and use. It'll write to memwatch.log a list of unfreed memory, double freed memory, etc and point out the exact line number in which they occur. For double-freed pointers, it'll show you both places where it was freed. At the end of the logfile it provides a little summary of how many allocations the program made, how many bytes weren't freed etc.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.