[Zrouter-src] ZRouter.org: push to zconf++ zconf++/platform/bsd_interfaces.cc

zrouter-src at zrouter.org zrouter-src at zrouter.org
Thu Jan 19 00:34:01 UTC 2012


details:   /rev/0bba7235e8be
changeset: 45:0bba7235e8be
user:      "Nicolai Petri <nicolai at petri.dk>"
date:      Thu Jan 19 01:33:37 2012 +0100
description:
Fix memory leak.

diffstat:

 zconf++/platform/bsd_interfaces.cc |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 4a57a1461eb4 -r 0bba7235e8be zconf++/platform/bsd_interfaces.cc
--- a/zconf++/platform/bsd_interfaces.cc	Thu Jan 19 00:17:32 2012 +0100
+++ b/zconf++/platform/bsd_interfaces.cc	Thu Jan 19 01:33:37 2012 +0100
@@ -127,6 +127,7 @@
 		GetInterfaceDetails(ifa, ifInfo);
 		ifList[ifa->ifa_name] = ifInfo;
 	}	
+	freeifaddrs(ifap);
 	return ifList;
 }
 


More information about the Zrouter-src mailing list