From 7f5a11f0061c43d0745d3243c327c8dfee83e983 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 4 Dec 2012 03:06:20 +0000 Subject: [PATCH] NOLUA guard in Port::freeScriptResults. --- portlist.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portlist.cc b/portlist.cc index 0c8af8046..27e32ff9c 100644 --- a/portlist.cc +++ b/portlist.cc @@ -146,10 +146,12 @@ void Port::freeService(bool del_service) { void Port::freeScriptResults(void) { +#ifndef NOLUA while (!scriptResults.empty()) { scriptResults.front().clear(); scriptResults.pop_front(); } +#endif } /* Fills in namebuf (as long as there is space in buflen) with the @@ -456,9 +458,7 @@ PortList::~PortList() { for(i=0; i < port_list_count[proto]; i++) { // free every Port if(port_list[proto][i]) { port_list[proto][i]->freeService(true); -#ifndef NOLUA port_list[proto][i]->freeScriptResults(); -#endif delete port_list[proto][i]; } }