Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp free dynamically allocated storage on error.
details: https://anonhg.NetBSD.org/src/rev/fe18709679ab
branches: trunk
changeset: 474301:fe18709679ab
user: itojun <itojun%NetBSD.org@localhost>
date: Sat Jul 03 05:49:57 1999 +0000
description:
free dynamically allocated storage on error.
diffstat:
usr.bin/ftp/ftp.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r ec4b68968c16 -r fe18709679ab usr.bin/ftp/ftp.c
--- a/usr.bin/ftp/ftp.c Sat Jul 03 05:44:11 1999 +0000
+++ b/usr.bin/ftp/ftp.c Sat Jul 03 05:49:57 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.49 1999/07/03 05:44:11 itojun Exp $ */
+/* $NetBSD: ftp.c,v 1.50 1999/07/03 05:49:57 itojun Exp $ */
/*
* Copyright (C) 1997 and 1998 WIDE Project.
@@ -67,7 +67,7 @@
#if 0
static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94";
#else
-__RCSID("$NetBSD: ftp.c,v 1.49 1999/07/03 05:44:11 itojun Exp $");
+__RCSID("$NetBSD: ftp.c,v 1.50 1999/07/03 05:49:57 itojun Exp $");
#endif
#endif /* not lint */
@@ -204,6 +204,7 @@
if (s < 0) {
warn(cause);
code = -1;
+ freeaddrinfo(res0);
return 0;
}
memcpy(&hisctladdr, res->ai_addr, res->ai_addrlen);
Home |
Main Index |
Thread Index |
Old Index