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:
Eduardo Sanchez <ledusanchez@gmail.com>
parent
cdf05471
Please register or sign in to comment