Use compressed form of ipv6 in $sender_host_address under -bh. Bug 3027
[exim.git] / src / OS / unsupported / os.c-cygwin
index c9464aae26013a6af0ba9c05a2a4976fff417a57..56085b8575c7a43704f6b7af9e3af0a86b5c6ff8 100644 (file)
@@ -1,6 +1,7 @@
 /*************************************************
 *     Exim - an Internet mail transport agent    *
 *************************************************/
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 
 /* Cygwin-specific code. December 2002. Updated Jan 2015.
    This is prefixed to the src/os.c file.
@@ -167,10 +168,10 @@ void cygwin_premain2(int argc, char ** argv, struct per_process * ptr)
         cygwin_debug = TRUE;
         fprintf(stderr, "CYGWIN = \"%s\".\n", cygenv);
         if (((size = cygwin_conv_path(CCP_POSIX_TO_WIN_W,"/", win32_path, 0)) > 0)
-        && ((win32_path = malloc(size)) != NULL)
+        && ((win32_path = store_malloc(size)) != NULL)
          && (cygwin_conv_path(CCP_POSIX_TO_WIN_W,"/", win32_path, size) == 0)) {
                fprintf(stderr, " Root / mapped to %ls.\n", win32_path);
-               free(win32_path);
+               store_free(win32_path);
        }
       }
       else if (argv[i][1] == 'b' && argv[i][2] == 'd') {