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>pull/211/merge
parent
cdf054719c
commit
dae1f95371
Loading…
Reference in New Issue