On Wed, 23 Sep 2020 17:15:38 +0300, Tal Shnaiderman wrote: > In the Windows getopt_internal function the condition freeing > the memory allocated by _dupenv_s is correct only for the first > call to the function.
Hi Tal, a few days back Khoa To and me privately discussed a patch that makes MinGW and Clang bith use getopt.c from librte_eal (now only Clang does). That patch includes adjustments that just remove _dupenv_s() along with the bug. Just discovered you were not Cc'd, sorry. I put your name in Reported-by and mentioned the bug in commit message: http://patchwork.dpdk.org/patch/78765/