From: Aaron Lipinski Date: Wed, 7 Apr 2021 01:08:36 +0000 (+1200) Subject: freeaddrinfo X-Git-Tag: v0.95~6^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e956e556217fcdd1865d21dea1cfb87a96550046;p=thirdparty%2Fmtr.git freeaddrinfo --- diff --git a/ui/gtk.c b/ui/gtk.c index 6e3a376..8ad0bbd 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -250,6 +250,7 @@ static gint Host_activate( ctl->Hostname = gtk_entry_get_text(GTK_ENTRY(entry)); if (get_hostent_from_name(ctl, &res, ctl->Hostname) == 0) { net_reopen(ctl, res); + freeaddrinfo(res); net_send_batch(ctl); /* If we are "Paused" at this point it is usually because someone entered a non-existing host. Therefore do the go-ahead... */ diff --git a/ui/mtr.c b/ui/mtr.c index 23411cb..9586780 100644 --- a/ui/mtr.c +++ b/ui/mtr.c @@ -815,6 +815,8 @@ int main( } } + freeaddrinfo(res); + lock(stdout); dns_open(); display_open(&ctl);