11687 isaexec() leaks memory if realloc fails

Review Request #2302 - Created Sept. 16, 2019 and submitted

Information
Andy Fiddaman
illumos-gate
master
11687
2299
b31db7d...
Reviewers
general
11687 isaexec() leaks memory if realloc fails

This is just one place where a simple swap of realloc() for reallocf() would fix a memory leak in the case that the memory reallocation fails.

There are potentially quite a few of these in gate:

% rg -lP '\b(\S+)\s*=\s*realloc\(\1\s*,' | wc -l
     202
Yuri Pankov
Robert Mustacchi
Andy Fiddaman
Review request changed

Status: Closed (submitted)

Loading...