diff options
| author | Anton <anton@picapica> | 2019-03-09 18:04:51 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-03-09 18:04:51 +0400 |
| commit | fa0b28ae592d4c70dff39a65833995c6cb182b95 (patch) | |
| tree | 93da1d9fe4e3e278fbabba775059a5e7b9af01be /PICA_netconf.c | |
| parent | 3419ec8cd771f9d47815c1f3fc0edeb5f443031c (diff) | |
| download | pica-pica-fa0b28ae592d4c70dff39a65833995c6cb182b95.tar.gz pica-pica-fa0b28ae592d4c70dff39a65833995c6cb182b95.zip | |
fix memory leak, free result of getifaddrs()
Diffstat (limited to 'PICA_netconf.c')
| -rw-r--r-- | PICA_netconf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/PICA_netconf.c b/PICA_netconf.c index 908d3ee..9c6f96b 100644 --- a/PICA_netconf.c +++ b/PICA_netconf.c @@ -90,6 +90,8 @@ in_addr_t PICA_guess_listening_addr_ipv4() found_global = 1; } } + + freeifaddrs(ifaddr); #else #endif |
