Skip to content

Commit

Permalink
memory leak fixed, device list needs to freed after use
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-github committed Oct 31, 2012
1 parent 008c994 commit 18cbe49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libnet/src/libnet_if_addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ libnet_ifaddrlist(register struct libnet_ifaddr_list **ipaddrp, char *dev, regis
++nipaddr;
}

pcap_freealldevs(alldevs);

*ipaddrp = ifaddrlist;
return (nipaddr);
}
Expand Down

0 comments on commit 18cbe49

Please sign in to comment.