Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mcvax!ace!konijn From: konijn@ace.UUCP Newsgroups: comp.bugs.4bsd Subject: scan(1) dumps core + fix Message-ID: <301@ace.UUCP> Date: Tue, 14-Apr-87 12:54:03 EST Article-I.D.: ace.301 Posted: Tue Apr 14 12:54:03 1987 Date-Received: Fri, 17-Apr-87 03:36:07 EST Sender: root@ace.UUCP Reply-To: konijn@ace.UUCP (Erik van Konijnenburg) Distribution: world Organization: ACE Associated Computer Experts bv, Amsterdam Lines: 28 Index: /usr/src/new/mh/uip/scan.c Description: The scan(1) command, part of MH-6.4, dumps core on unreadable messages. At least, on our System V mc680x0 box it does. Repeat-By: Make a message in a mailbox unreadable and scan that mailbox. Fix: Don't free what wasn't allocated in the first place. *** /tmp/1 Tue Apr 14 18:18:06 1987 --- scan.c Tue Apr 14 18:06:43 1987 *************** *** 216,222 **** admonish (cp, "unable to open message"); else printf ("%*d unreadable\n", DMAXFOLDER, msgnum); - free (cp); continue; } --- 216,221 ---- --------- Erik van Konijnenburg, , ...!mcvax!ace!konijn, ACE Associated Computer Experts bv, Amsterdam, the Netherlands