Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga.tech Subject: Re: Why does this guru? (This one's easy) Message-ID: <8804292024.AA05140@cory.Berkeley.EDU> Date: 29 Apr 88 20:24:23 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 17 :Why doesn't this work? If the file doesn't exist, the appropriate :error message is printed; if the file does exist, the machine :promptly aborts with guru 81000009.xxxxxxxx. : if (! Examine (lock, fib)) : { : FreeMem (fib); That should be: FreeMem(fib, (long)sizeof(struct FileInfoBlock)); FreeMem() takes two arguments, the pointer and the block size. If, on the otherhand, you used malloc(), free() requires only a pointer. BTW, this is a *feature* of EXEC's memory system ... Allocated memory takes no overhead. -Matt