From: James Clark Date: Sat, 13 Dec 1997 09:11:15 +0000 (+0000) Subject: Add MSVC call to chcek for memory leaks X-Git-Tag: REC1_0~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12693c93cad6cf1bddc894c889a6cb1fa3177ac6;p=libexpat Add MSVC call to chcek for memory leaks --- 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) {