From b56c25a9723d74678c041e52da4b29cc3a92c8f9 Mon Sep 17 00:00:00 2001 From: henri Date: Sat, 4 Aug 2012 16:05:24 +0000 Subject: [PATCH] Fixed memory leak. --- nse_nsock.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/nse_nsock.cc b/nse_nsock.cc index 706595525..3861e6915 100644 --- a/nse_nsock.cc +++ b/nse_nsock.cc @@ -546,6 +546,7 @@ static int l_sendto (lua_State *L) nsock_sendto(nsp, nu->nsiod, callback, nu->timeout, nu, dest->ai_addr, dest->ai_addrlen, port, string, size); trace(nu->nsiod, hexify((unsigned char *) string, size).c_str(), TO); + freeaddrinfo(dest); return yield(L, nu, "SEND", TO, 0, NULL); }