Query module MemoryMayNotBeFreed
- Memory may not be freed
- A function may return before freeing memory that was allocated in the function. Freeing all memory allocated in the function before returning ties the lifetime of the memory blocks to that of the function call, making it easier to avoid and detect memory leaks.
- efficiency security external/cwe/cwe-401
The value from allocation
The value returned by allocation
‘call’ is either a direct call to f, or a possible call to f via a function pointer.
The point at which a call to ‘realloc’ on ‘v’ has been verified to succeed. A failed realloc does not free the input pointer, which can cause memory leaks.