Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/npf/npfctl freeaddrinfo() only on getaddrinfo() suc...
details: https://anonhg.NetBSD.org/src/rev/f54cbca22837
branches: trunk
changeset: 770998:f54cbca22837
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Nov 05 19:19:29 2011 +0000
description:
freeaddrinfo() only on getaddrinfo() success.
diffstat:
usr.sbin/npf/npfctl/npf_data.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r d189d9a01b6a -r f54cbca22837 usr.sbin/npf/npfctl/npf_data.c
--- a/usr.sbin/npf/npfctl/npf_data.c Sat Nov 05 19:08:22 2011 +0000
+++ b/usr.sbin/npf/npfctl/npf_data.c Sat Nov 05 19:19:29 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_data.c,v 1.8 2011/11/04 01:00:28 zoltan Exp $ */
+/* $NetBSD: npf_data.c,v 1.9 2011/11/05 19:19:29 jakllsch Exp $ */
/*-
* Copyright (c) 2009-2011 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: npf_data.c,v 1.8 2011/11/04 01:00:28 zoltan Exp $");
+__RCSID("$NetBSD: npf_data.c,v 1.9 2011/11/05 19:19:29 jakllsch Exp $");
#include <sys/types.h>
#include <sys/socket.h>
@@ -173,8 +173,8 @@
family = AF_UNSPEC;
} else {
family = res->ai_family;
+ freeaddrinfo(res);
}
- freeaddrinfo(res);
free(str);
return family;
}
Home |
Main Index |
Thread Index |
Old Index