<Snip!>

On 4/14/2020 12:44 PM, Dmitry Kozlyuk wrote:
diff --git a/lib/librte_eal/windows/eal_memory.c 
b/lib/librte_eal/windows/eal_memory.c
new file mode 100644
index 000000000..5697187ce
--- /dev/null
+++ b/lib/librte_eal/windows/eal_memory.c
@@ -0,0 +1,437 @@

<Snip!>

+
+       if ((flags & EAL_RESERVE_EXACT_ADDRESS) && (virt != requested_addr)) {
+               if (!VirtualFree(virt, 0, MEM_RELEASE))

Microsoft documentation suggests that we use VirtualFreeEx() to free memory allocated by VirtualAlloc2(). VirtualFreeEx() would require the handle to the current process that was passed into VirtualAlloc2()

There are 6 other such occurrences in this file.

ranjit m.

Reply via email to