Frees memory from the address space of the process. @see: U{http://msdn.microsoft.com/en-us/library/aa366894(v=vs.85).aspx} @type lpAddress: int @param lpAddress: Address of memory to free. Must be the base address returned by L{malloc}. @rais
(self, lpAddress)
| 2484 | return win32.VirtualQueryEx(hProcess, lpAddress) |
| 2485 | |
| 2486 | def free(self, lpAddress): |
| 2487 | """ |
| 2488 | Frees memory from the address space of the process. |
| 2489 | |
| 2490 | @see: U{http://msdn.microsoft.com/en-us/library/aa366894(v=vs.85).aspx} |
| 2491 | |
| 2492 | @type lpAddress: int |
| 2493 | @param lpAddress: Address of memory to free. |
| 2494 | Must be the base address returned by L{malloc}. |
| 2495 | |
| 2496 | @raise WindowsError: On error an exception is raised. |
| 2497 | """ |
| 2498 | hProcess = self.get_handle(win32.PROCESS_VM_OPERATION) |
| 2499 | win32.VirtualFreeEx(hProcess, lpAddress) |
| 2500 | |
| 2501 | # ------------------------------------------------------------------------------ |
| 2502 |
no test coverage detected