MCPcopy Create free account
hub / github.com/ZeroIntensity/pointers.py / free

Function free

src/pointers/malloc.py:133–144  ·  view source on GitHub ↗

Equivalent to `target.free()` Args: target: Pointer to free. Example: ```py ptr = malloc(1) free(ptr) # is the same as `ptr.free()` ```

(target: BaseAllocatedPointer)

Source from the content-addressed store, hash-verified

131
132
133def free(target: BaseAllocatedPointer):
134 """Equivalent to `target.free()`
135
136 Args:
137 target: Pointer to free.
138
139 Example:
140 ```py
141 ptr = malloc(1)
142 free(ptr) # is the same as `ptr.free()`
143 ```"""
144 target.free()
145
146
147@handle

Callers 3

_Function · 0.90
calloc_example.pyFile · 0.90
malloc_example.pyFile · 0.90

Calls 1

freeMethod · 0.45

Tested by 1

_Function · 0.72