11687 isaexec() leaks memory if realloc fails
Review Request #2302 — Created Sept. 16, 2019 and submitted — Latest diff uploaded
Information | |
---|---|
citrus | |
illumos-gate | |
master | |
11687 | |
|
|
b31db7d... | |
Reviewers | |
general | |
11687 isaexec() leaks memory if realloc fails
This is just one place where a simple swap of
realloc()
forreallocf()
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