From dee2daac5acc6c15db4098af243cc850cd3b3548 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 29 Jul 2019 21:58:16 -0700 Subject: [PATCH] Fix invalid free on getaddrinfo() failure --- mist/mist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mist/mist.cpp b/mist/mist.cpp index 5c13bbf..4e79d3f 100644 --- a/mist/mist.cpp +++ b/mist/mist.cpp @@ -931,9 +931,9 @@ int main(int argc, char* argv[]) } } } - } - freeaddrinfo(result); + freeaddrinfo(result); + } // Many UPnP devices report IGD disconnected when double-NATed. If it was really offline, // we probably would not have even gotten past STUN.