Resolver: stop inet_res leaking ports
Resolver: stop inet_res leaking ports

Bugfix: when all nameservers return a reply causing decode errors
or when errors enetunreach or econnrefused occured while
contacting them, one or two UDP ports was leaked i.e
left open and forgotten.

lightcyphers/otp,c-rack/otp,matwey/otp,msantos/otp,sammoth-wazoku/otp,massemanet/otp,release-project/otp,GinjaNinja32/otp,bernardd/otp,lhslll/otp,yangchengjian/otp,marquisthunder/otp,RichMorin/otp,sammoth-wazoku/otp,mikpe/otp,massemanet/otp,goertzenator/otp,sdebnath/otp,electricimp/otp,klarna/otp,gjaldon/otp,potatosalad/otp,aboroska/otp,msantos/otp,entropiae/otp,dumbbell/otp,krishnakumar4a4/otp,emile/otp,goertzenator/otp,lemenkov/otp,bernardd/otp,emacsmirror/erlang,paladim/otp,gjaldon/otp,RichMorin/otp,ader1990/otp,Teino1978-Corp/otp,lucafavatella/otp,lrascao/otp,emacsmirror/erlang,g-andrade/otp,isvilen/otp,legoscia/otp,Teino1978-Corp/erlang-otp,derek121/otp,mujiatong/otp,vladdu/otp,emacsmirror/erlang,kvakvs/otp,bernardd/otp,enikki/otp,weisslj/otp,rlipscombe/otp,hairyhum/otp,RaimoNiskanen/otp,RGafiyatullin/otp,dumbbell/otp,bjorng/otp,isvilen/otp,beni55/otp,vinoski/otp,emacsmirror/erlang,dgud/otp,sdebnath/otp,electricimp/otp,stolen/otp,RaimoNiskanen/otp,jemsbhai/otp,RaimoNiskanen/otp,enikki/otp,bugs-erlang-org/otp,paulcager/otp,sitexa/otp,johanclaesson/otp,theom/otp,cnbin/otp,isvilen/otp,jinshana/otp,potatosalad/otp,marquisthunder/otp,goertzenator/otp,psyeugenic/otp,c-rack/otp,saleyn/otp,gjaldon/otp,stolen/otp,fenollp/otp,basho/otp,neeraj9/otp,aboroska/otp,falkevik/otp,dgud/otp,platinumthinker/otp,ahmedshafeeq/otp,release-project/otp,sammoth-wazoku/otp,vladdu/otp,lemenkov/otp,jemsbhai/otp,haguenau/otp,enikki/otp,fenollp/otp,neeraj9/otp,jamesruan/otp,lrascao/otp,marquisthunder/otp,mikpe/otp,schlagert/otp,aboroska/otp,vinoski/otp,massemanet/otp,vinoski/otp,bjorng/otp,benoitc/otp-1,entropiae/otp,johanclaesson/otp,RoadRunnr/otp,psyeugenic/otp,lrascao/otp,johanclaesson/otp,bernardd/otp,riverrun/otp,ahmedshafeeq/otp,vladdu/otp,cobusc/otp,jamesruan/otp,RGafiyatullin/otp,falkevik/otp,krishnakumar4a4/otp,cobusc/otp,lightcyphers/otp,g-andrade/otp,falkevik/otp,GinjaNinja32/otp,bugs-erlang-org/otp,RGafiyatullin/otp,jinshana/otp,electricimp/otp,beni55/otp,release-project/otp,uabboli/otp,awetzel/otp,ader1990/otp,lightcyphers/otp,psyeugenic/otp,VincentHHL/otp,vic/otp,lemenkov/otp,ader1990/otp,legoscia/otp,weisslj/otp,kvakvs/otp,msantos/otp,jinshana/otp,bernardd/otp,VincentHHL/otp,RaimoNiskanen/otp,cobusc/otp,potatosalad/otp,mikpe/otp,jemsbhai/otp,c-rack/otp,falkevik/otp,goertzenator/otp,lantti/otp,goertzenator/otp,yangchengjian/otp,dgud/otp,tuncer/otp,uabboli/otp,beni55/otp,potatosalad/otp,GinjaNinja32/otp,mikpe/otp,lemenkov/otp,emacsmirror/erlang,derek121/otp,krishnakumar4a4/otp,beni55/otp,aboroska/otp,jj1bdx/otp,ferd/otp,bugs-erlang-org/otp,dgud/otp,mikpe/otp,bsmr-erlang/otp,ahmedshafeeq/otp,yangchengjian/otp,klarna/otp,schlagert/otp,cnbin/otp,psyeugenic/otp,lrascao/otp,legoscia/otp,riverrun/otp,bugs-erlang-org/otp,RoadRunnr/otp,ahmedshafeeq/otp,mikpe/otp,lantti/otp,schlagert/otp,hairyhum/otp,release-project/otp,RaimoNiskanen/otp,RoadRunnr/otp,haguenau/otp,jemsbhai/otp,basho/otp,mujiatong/otp,palas/otp,weisslj/otp,potatosalad/otp,kvakvs/otp,schlagert/otp,ader1990/otp,erlang/otp,legoscia/otp,lianghaivv/otp,RoadRunnr/otp,aboroska/otp,vinoski/otp,vic/otp,fenollp/otp,krishnakumar4a4/otp,msantos/otp,bjorng/otp,NOMORECOFFEE/otp,falkevik/otp,Teino1978-Corp/erlang-otp,aboroska/otp,erlang/otp,GinjaNinja32/otp,sammoth-wazoku/otp,schlagert/otp,sitexa/otp,uabboli/otp,Teino1978-Corp/otp,cobusc/otp,jamesruan/otp,g-andrade/otp,mikpe/otp,g-andrade/otp,vladdu/otp,ader1990/otp,sammoth-wazoku/otp,emile/otp,awetzel/otp,entropiae/otp,tuncer/otp,palas/otp,emacsmirror/erlang,saleyn/otp,krishnakumar4a4/otp,sdebnath/otp,cnbin/otp,paladim/otp,jj1bdx/otp,Teino1978-Corp/otp,lianghaivv/otp,cobusc/otp,isvilen/otp,rlipscombe/otp,gjaldon/otp,tuncer/otp,getong/otp,lhslll/otp,theom/otp,lianghaivv/otp,vinoski/otp,hairyhum/otp,derek121/otp,RJ/otp,dumbbell/otp,sdebnath/otp,palas/otp,saleyn/otp,isvilen/otp,RJ/otp,paulcager/otp,Teino1978-Corp/otp,jj1bdx/otp,palas/otp,erlang/otp,mikpe/otp,rlipscombe/otp,vladdu/otp,theom/otp,mikpe/otp,dgud/otp,platinumthinker/otp,hairyhum/otp,getong/otp,haguenau/otp,RoadRunnr/otp,isvilen/otp,electricimp/otp,emacsmirror/erlang,c-rack/otp,potatosalad/otp,erlang/otp,ahmedshafeeq/otp,ferd/otp,dgud/otp,stolen/otp,emile/otp,lrascao/otp,paladim/otp,emacsmirror/erlang,klarna/otp,krishnakumar4a4/otp,goertzenator/otp,kvakvs/otp,g-andrade/otp,tuncer/otp,Teino1978-Corp/erlang-otp,theom/otp,getong/otp,mujiatong/otp,mujiatong/otp,RJ/otp,mikpe/otp,Teino1978-Corp/otp,dumbbell/otp,theom/otp,lantti/otp,klarna/otp,jj1bdx/otp,RichMorin/otp,NOMORECOFFEE/otp,riverrun/otp,stolen/otp,derek121/otp,VincentHHL/otp,RichMorin/otp,riverrun/otp,platinumthinker/otp,cnbin/otp,jinshana/otp,uabboli/otp,ferd/otp,sdebnath/otp,ferd/otp,RoadRunnr/otp,falkevik/otp,erlang/otp,erlang/otp,entropiae/otp,electricimp/otp,klarna/otp,matwey/otp,potatosalad/otp,dumbbell/otp,sitexa/otp,VincentHHL/otp,release-project/otp,Teino1978-Corp/erlang-otp,yangchengjian/otp,g-andrade/otp,palas/otp,RJ/otp,bsmr-erlang/otp,bernardd/otp,legoscia/otp,hairyhum/otp,lemenkov/otp,lantti/otp,saleyn/otp,enikki/otp,lrascao/otp,sammoth-wazoku/otp,basho/otp,lantti/otp,hairyhum/otp,sdebnath/otp,psyeugenic/otp,getong/otp,emile/otp,NOMORECOFFEE/otp,getong/otp,derek121/otp,RGafiyatullin/otp,paulcager/otp,RGafiyatullin/otp,stolen/otp,matwey/otp,uabboli/otp,electricimp/otp,marquisthunder/otp,paulcager/otp,vic/otp,getong/otp,lightcyphers/otp,lucafavatella/otp,Teino1978-Corp/erlang-otp,weisslj/otp,VincentHHL/otp,jamesruan/otp,benoitc/otp-1,c-rack/otp,entropiae/otp,NOMORECOFFEE/otp,cobusc/otp,uabboli/otp,entropiae/otp,RJ/otp,matwey/otp,enikki/otp,riverrun/otp,ferd/otp,sdebnath/otp,neeraj9/otp,bugs-erlang-org/otp,msantos/otp,vic/otp,kvakvs/otp,Teino1978-Corp/erlang-otp,vic/otp,VincentHHL/otp,goertzenator/otp,tuncer/otp,RaimoNiskanen/otp,yangchengjian/otp,benoitc/otp-1,haguenau/otp,uabboli/otp,GinjaNinja32/otp,saleyn/otp,matwey/otp,RGafiyatullin/otp,kvakvs/otp,massemanet/otp,paulcager/otp,jamesruan/otp,palas/otp,theom/otp,bsmr-erlang/otp,release-project/otp,lightcyphers/otp,klarna/otp,ferd/otp,awetzel/otp,legoscia/otp,lemenkov/otp,jamesruan/otp,erlang/otp,VincentHHL/otp,vic/otp,stolen/otp,lightcyphers/otp,derek121/otp,lemenkov/otp,krishnakumar4a4/otp,weisslj/otp,dgud/otp,bugs-erlang-org/otp,paladim/otp,platinumthinker/otp,massemanet/otp,cobusc/otp,dgud/otp,klarna/otp,ader1990/otp,getong/otp,jinshana/otp,matwey/otp,release-project/otp,palas/otp,GinjaNinja32/otp,jemsbhai/otp,benoitc/otp-1,klarna/otp,c-rack/otp,RJ/otp,RGafiyatullin/otp,kvakvs/otp,gjaldon/otp,RichMorin/otp,massemanet/otp,cnbin/otp,ferd/otp,lemenkov/otp,cnbin/otp,rlipscombe/otp,uabboli/otp,RichMorin/otp,haguenau/otp,RoadRunnr/otp,bjorng/otp,vladdu/otp,getong/otp,goertzenator/otp,marquisthunder/otp,fenollp/otp,lianghaivv/otp,emile/otp,uabboli/otp,NOMORECOFFEE/otp,dumbbell/otp,NOMORECOFFEE/otp,psyeugenic/otp,rlipscombe/otp,bsmr-erlang/otp,lhslll/otp,schlagert/otp,ahmedshafeeq/otp,ader1990/otp,VincentHHL/otp,psyeugenic/otp,matwey/otp,sdebnath/otp,emacsmirror/erlang,bsmr-erlang/otp,bjorng/otp,legoscia/otp,lhslll/otp,ahmedshafeeq/otp,emile/otp,johanclaesson/otp,yangchengjian/otp,bsmr-erlang/otp,RichMorin/otp,g-andrade/otp,NOMORECOFFEE/otp,falkevik/otp,dumbbell/otp,msantos/otp,falkevik/otp,electricimp/otp,lucafavatella/otp,lrascao/otp,paulcager/otp,sitexa/otp,paulcager/otp,yangchengjian/otp,fenollp/otp,lantti/otp,derek121/otp,lucafavatella/otp,lianghaivv/otp,jemsbhai/otp,bsmr-erlang/otp,tuncer/otp,legoscia/otp,johanclaesson/otp,tuncer/otp,emile/otp,NOMORECOFFEE/otp,benoitc/otp-1,enikki/otp,electricimp/otp,bugs-erlang-org/otp,RaimoNiskanen/otp,dumbbell/otp,stolen/otp,lucafavatella/otp,paladim/otp,isvilen/otp,hairyhum/otp,rlipscombe/otp,isvilen/otp,jj1bdx/otp,massemanet/otp,saleyn/otp,jinshana/otp,neeraj9/otp,psyeugenic/otp,rlipscombe/otp,matwey/otp,vic/otp,massemanet/otp,c-rack/otp,fenollp/otp,bsmr-erlang/otp,basho/otp,tuncer/otp,riverrun/otp,jj1bdx/otp,beni55/otp,g-andrade/otp,sammoth-wazoku/otp,RJ/otp,awetzel/otp,electricimp/otp,emacsmirror/erlang,riverrun/otp,lhslll/otp,goertzenator/otp,mujiatong/otp,bernardd/otp,msantos/otp,rlipscombe/otp,bjorng/otp,erlang/otp,haguenau/otp,Teino1978-Corp/otp,awetzel/otp,awetzel/otp,basho/otp,erlang/otp,lightcyphers/otp,saleyn/otp,GinjaNinja32/otp,benoitc/otp-1,bsmr-erlang/otp,fenollp/otp,ahmedshafeeq/otp,g-andrade/otp,sitexa/otp,kvakvs/otp,neeraj9/otp,benoitc/otp-1,entropiae/otp,bugs-erlang-org/otp,jj1bdx/otp,gjaldon/otp,neeraj9/otp,fenollp/otp,jj1bdx/otp,johanclaesson/otp,RGafiyatullin/otp,potatosalad/otp,isvilen/otp,sammoth-wazoku/otp,sitexa/otp,fenollp/otp,bjorng/otp,paulcager/otp,falkevik/otp,cnbin/otp,lianghaivv/otp,saleyn/otp,awetzel/otp,paladim/otp,lantti/otp,RoadRunnr/otp,Teino1978-Corp/otp,weisslj/otp,beni55/otp,vinoski/otp,potatosalad/otp,gjaldon/otp,paladim/otp,enikki/otp,lucafavatella/otp,jj1bdx/otp,bjorng/otp,hairyhum/otp,marquisthunder/otp,awetzel/otp,potatosalad/otp,massemanet/otp,weisslj/otp,theom/otp,benoitc/otp-1,jinshana/otp,lianghaivv/otp,neeraj9/otp,krishnakumar4a4/otp,basho/otp,weisslj/otp,rlipscombe/otp,matwey/otp,platinumthinker/otp,vinoski/otp,lianghaivv/otp,lhslll/otp,saleyn/otp,ferd/otp,paladim/otp,haguenau/otp,ahmedshafeeq/otp,theom/otp,jemsbhai/otp,lrascao/otp,vladdu/otp,platinumthinker/otp,bjorng/otp,basho/otp,johanclaesson/otp,ferd/otp,gjaldon/otp,dgud/otp,mujiatong/otp,release-project/otp,jinshana/otp,lrascao/otp,enikki/otp,lucafavatella/otp,johanclaesson/otp,schlagert/otp,RJ/otp,derek121/otp,vinoski/otp,getong/otp,stolen/otp,cnbin/otp,lantti/otp,jamesruan/otp,marquisthunder/otp,sitexa/otp,emile/otp,RichMorin/otp,mujiatong/otp,lucafavatella/otp,legoscia/otp,kvakvs/otp,aboroska/otp,vladdu/otp,jj1bdx/otp,g-andrade/otp,Teino1978-Corp/erlang-otp,dumbbell/otp,basho/otp,neeraj9/otp,palas/otp,lightcyphers/otp,jemsbhai/otp,mujiatong/otp,vinoski/otp,weisslj/otp,platinumthinker/otp,entropiae/otp,GinjaNinja32/otp,vic/otp,c-rack/otp,schlagert/otp,Teino1978-Corp/otp,vladdu/otp,RaimoNiskanen/otp,bernardd/otp,beni55/otp,rlipscombe/otp,sitexa/otp,beni55/otp,Teino1978-Corp/erlang-otp,bernardd/otp,marquisthunder/otp,lhslll/otp,dumbbell/otp,jamesruan/otp,ader1990/otp,lhslll/otp,cobusc/otp,getong/otp,msantos/otp,aboroska/otp,basho/otp,vinoski/otp,RoadRunnr/otp,release-project/otp,bjorng/otp,yangchengjian/otp,haguenau/otp,riverrun/otp,aboroska/otp,RaimoNiskanen/otp,erlang/otp,tuncer/otp,dgud/otp,platinumthinker/otp,emile/otp,isvilen/otp