]> granicus.if.org Git - gc/commitdiff
Turn off leak detection mode explicitly in cord/de
authorIvan Maidanski <ivmai@mail.ru>
Thu, 22 Nov 2018 23:10:10 +0000 (02:10 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 26 Nov 2018 06:14:35 +0000 (09:14 +0300)
* 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.

cord/tests/de.c
cord/tests/de_win.c

index 0d0dc5f49b0d0d1224da14154d42afd0fc855803..2707405a135e014aade4ead130fc3ac99de06763 100644 (file)
@@ -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();
index 62cff6525e6fcb7dcc13c6b73922c5c8f8aa0df5..a41eb3d79ae17a6aa00bf8eb073addeef4291d5c 100644 (file)
@@ -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();