diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-30 14:56:36 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-30 14:56:36 -0800 |
commit | 1e213b4d4c243cedcc77ebcc9443a4fd062e9321 (patch) | |
tree | 9e4e134af8695ccdf241bab135c7cb933e2b4ff1 /osdep/PortMapper.cpp | |
parent | 3d6649282822f79e40a771ea8ecd0cd9410f80f9 (diff) | |
download | infinitytier-1e213b4d4c243cedcc77ebcc9443a4fd062e9321.tar.gz infinitytier-1e213b4d4c243cedcc77ebcc9443a4fd062e9321.zip |
Need to close on premature abort too or resources are leaked.
Diffstat (limited to 'osdep/PortMapper.cpp')
-rw-r--r-- | osdep/PortMapper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/PortMapper.cpp b/osdep/PortMapper.cpp index a33bd0e6..a6baa905 100644 --- a/osdep/PortMapper.cpp +++ b/osdep/PortMapper.cpp @@ -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; } |