11687 isaexec() leaks memory if realloc fails

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

citrus
illumos-gate
master
11687
2299
b31db7d...
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
yuripv
  1. Looks reasonable.

    It would be useful though if sysinfo() would accept NULL buf, and return the needed storage size.

  2. 
      
rm
  1. Ship It!
  2. 
      
citrus
Review request changed

Status: Closed (submitted)

Loading...