Atoptool / atop

System and process monitor for Linux
GNU General Public License v2.0
792 stars 109 forks source link

Resolve a memory leak when switching to bar graph mode (covscan) #269

Closed natoscott closed 1 year ago

natoscott commented 1 year ago

Tackles the following covscan issue in a MBARGRAPH switch case:

CID 394863:  Resource leaks  (RESOURCE_LEAK)
Variable "curlist" going out of scope leaks the storage it points to.
natoscott commented 1 year ago

@Atoptool I'm not sure if this switch case also needs the 'pause/break' handling that some of the other cases have?

Atoptool commented 1 year ago

Thanks! This switch case does not need the pause/break handling.