]> granicus.if.org Git - procps-ng/commit
top: avoid unrecognized 'Inspect' entries memory leaks
authorJim Warner <james.warner@comcast.net>
Sat, 21 Jul 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 1 Aug 2018 11:38:44 +0000 (21:38 +1000)
commit40dbd5005642af99e47419bd3277270898142dfb
tree7301e79adcd55821ea550c93d1ab3d2483c5e70f
parent11b87c73edb16d4e4fcbebd9c93e69fb47973116
top: avoid unrecognized 'Inspect' entries memory leaks

Upon startup there exists the potential for some minor
memory leakage should some rcfile 'Inspect' entries be
invalid. By delaying any malloc/strdup until after the
entries are completely validated we will prevent that.

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c