Atoptool / atop

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

ifprop.c: Fix possible memory leak #239

Closed pizhenwei closed 1 year ago

pizhenwei commented 1 year ago

Once 'ioctl(sockfd, SIOCETHTOOL, &ifreq)' fails, the dynamically allocated memory buffer(ethlink points to) gets orphan.