From owner-cvs-all Tue Jul 11 2:31:24 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9355037B719; Tue, 11 Jul 2000 02:31:19 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA36697; Tue, 11 Jul 2000 02:31:20 -0700 (PDT) (envelope-from peter@FreeBSD.org) Message-Id: <200007110931.CAA36697@freefall.freebsd.org> From: Peter Wemm Date: Tue, 11 Jul 2000 02:31:19 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/net rcmd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG peter 2000/07/11 02:31:19 PDT Modified files: lib/libc/net rcmd.c Log: Try and fix the worst of some highly bogus malloc/free resource management involving rcmd_af(), getaddrinfo(), freeaddrinfo(), etc. We set *ahost to point to ai->canonname; and later free the ai-> stuff and still leave the old pointers in *ahost to the freed data. Perhaps the best way to deal with this is a static buffer or a static strdup() that is freed on the next iteration or something. This gives me headaches just thinking about this. The new 'AJ' default for malloc() tripped this up. Revision Changes Path 1.26 +2 -2 src/lib/libc/net/rcmd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message