Need to close on premature abort too or resources are leaked.

This commit is contained in:
Adam Ierymenko 2015-11-30 14:56:36 -08:00
parent 3d66492828
commit 1e213b4d4c

View File

@ -120,6 +120,7 @@ public:
#ifdef ZT_PORTMAPPER_TRACE
fprintf(stderr,"PortMapper: NAT-PMP: request for external address failed, aborting..."ZT_EOL_S);
#endif
closenatpmp(&natpmp);
break;
}