Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net avoid memory leak on valid FQDN + invalid port ...
details: https://anonhg.NetBSD.org/src/rev/b32487a5c600
branches: trunk
changeset: 482796:b32487a5c600
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Feb 22 05:47:15 2000 +0000
description:
avoid memory leak on valid FQDN + invalid port name.
diffstat:
lib/libc/net/getaddrinfo.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r b9b65542a173 -r b32487a5c600 lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c Tue Feb 22 05:26:55 2000 +0000
+++ b/lib/libc/net/getaddrinfo.c Tue Feb 22 05:47:15 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getaddrinfo.c,v 1.33 2000/02/20 17:07:01 itojun Exp $ */
+/* $NetBSD: getaddrinfo.c,v 1.34 2000/02/22 05:47:15 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -598,6 +598,8 @@
return 0;
free:
+ if (result)
+ freeaddrinfo(result);
return error;
}
Home |
Main Index |
Thread Index |
Old Index