From: Ivan Maidanski Date: Thu, 22 Nov 2018 23:10:10 +0000 (+0300) Subject: Turn off leak detection mode explicitly in cord/de X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64b623ef3c75c9fe5952f2b9dfa387e4ee8148a5;p=gc Turn off leak detection mode explicitly in cord/de * cord/tests/de.c [!WIN32] (main): Call GC_set_find_leak(0) before GC_INIT() to disable leak detection mode. * cord/tests/de_win.c [WIN32] (WinMain): Likewise. --- diff --git a/cord/tests/de.c b/cord/tests/de.c index 0d0dc5f4..2707405a 100644 --- a/cord/tests/de.c +++ b/cord/tests/de.c @@ -596,6 +596,7 @@ int main(int argc, char **argv) cshow(stdout); argc = ccommand(&argv); # endif + GC_set_find_leak(0); /* app is not for testing leak detection mode */ GC_INIT(); # ifndef NO_INCREMENTAL GC_enable_incremental(); diff --git a/cord/tests/de_win.c b/cord/tests/de_win.c index 62cff652..a41eb3d7 100644 --- a/cord/tests/de_win.c +++ b/cord/tests/de_win.c @@ -51,6 +51,7 @@ int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, WNDCLASS wndclass; HACCEL hAccel; + GC_set_find_leak(0); GC_INIT(); # ifndef NO_INCREMENTAL GC_enable_incremental();