From owner-cvs-usrsbin Sat Dec 14 11:54:02 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA04222 for cvs-usrsbin-outgoing; Sat, 14 Dec 1996 11:54:02 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA04213; Sat, 14 Dec 1996 11:53:57 -0800 (PST) Date: Sat, 14 Dec 1996 11:53:57 -0800 (PST) From: Joerg Wunsch Message-Id: <199612141953.LAA04213@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/config config.y mkheaders.c mkmakefile.c mkoptions.c mkswapconf.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 96/12/14 11:53:56 Modified: usr.sbin/config config.y mkheaders.c mkmakefile.c mkoptions.c mkswapconf.c Log: Part #2 of the config cleanup. More aggressive, replaced an NIH version of strdup() by a macro, killed many calls to strdup(), thus potentially wasting less malloc'ed space (their args were never be free()ed desptie despite of being malloc'ed). Probably still a huge memory leak at all... Also killed two totally useless variables. I've tested it as i could, but wouldn't be surprised if unexpected problems showed up. So watch out this space! Revision Changes Path 1.15 +14 -34 src/usr.sbin/config/config.y 1.5 +4 -1 src/usr.sbin/config/mkheaders.c 1.21 +3 -0 src/usr.sbin/config/mkmakefile.c 1.5 +7 -3 src/usr.sbin/config/mkoptions.c 1.12 +3 -0 src/usr.sbin/config/mkswapconf.c