Unverified Commit dae1f953 authored by Eduardo Sanchez's avatar Eduardo Sanchez
Browse files

Adding a new temporary variable for realloc memory in order to keep the...


Adding a new temporary variable for realloc memory in order to keep the reference to the allocated memory before the function returns.
In case that realloc fails (i.e. OOM), before exiting with "return(1)", the application is still able to free the corresponding allocated memory.

Signed-off-by: default avatarEduardo Sanchez <ledusanchez@gmail.com>
parent cdf05471
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment