Skip to content

Commit

Permalink
SunOS / net_if_addrs(): free() ifap struct on error (#1491)
Browse files Browse the repository at this point in the history
  • Loading branch information
qcha0 authored and giampaolo committed Apr 25, 2019
1 parent 3d6b084 commit 611b44e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions psutil/arch/solaris/v10/ifaddrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,6 @@ int getifaddrs (struct ifaddrs **ifap)
free(ifc.lifc_buf);
if (sd != -1)
close(sd);
freeifaddrs(*ifap);
return (-1);
}

0 comments on commit 611b44e

Please sign in to comment.