MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / free

Method free

pydevd_attach_to_process/winappdbg/process.py:2486–2499  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 4

__restore_mbiMethod · 0.95
inject_codeMethod · 0.95
inject_dllMethod · 0.95
killMethod · 0.80

Calls 1

get_handleMethod · 0.95

Tested by

no test coverage detected