From 12693c93cad6cf1bddc894c889a6cb1fa3177ac6 Mon Sep 17 00:00:00 2001 From: James Clark Date: Sat, 13 Dec 1997 09:11:15 +0000 Subject: [PATCH] Add MSVC call to chcek for memory leaks --- expat/xmlwf/xmlwf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/expat/xmlwf/xmlwf.c b/expat/xmlwf/xmlwf.c index 94a93111..a0e3381c 100755 --- a/expat/xmlwf/xmlwf.c +++ b/expat/xmlwf/xmlwf.c @@ -2,6 +2,9 @@ #include #include "wfcheck.h" #include "filemap.h" +#ifdef _MSC_VER +#include +#endif struct ProcessFileArg { enum EntityType entityType; @@ -37,6 +40,9 @@ int main(int argc, char **argv) int ret = 0; struct ProcessFileArg arg; +#ifdef _MSC_VER + _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF|_CRTDBG_LEAK_CHECK_DF); +#endif arg.entityType = documentEntity; if (i < argc && strcmp(argv[i], "-g") == 0) { -- 2.40.0