summaryrefslogtreecommitdiff
path: root/osdep/PortMapper.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-30 14:56:36 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-30 14:56:36 -0800
commit1e213b4d4c243cedcc77ebcc9443a4fd062e9321 (patch)
tree9e4e134af8695ccdf241bab135c7cb933e2b4ff1 /osdep/PortMapper.cpp
parent3d6649282822f79e40a771ea8ecd0cd9410f80f9 (diff)
downloadinfinitytier-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.cpp1
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;
}