home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!scifi!watson!danbob.vnet.ibm.com!gruber
- From: gruber@danbob.vnet.ibm.com (Scott Gruber)
- Subject: WHAT'S WRONG WITH THIS CODE ... ???
- Sender: @watson.ibm.com
- Message-ID: <1992Dec24.135307.15926@watson.ibm.com>
- Date: Thu, 24 Dec 92 13:53:07 GMT
- Reply-To: gruber@danbob.vnet.ibm.com (Scott Gruber)
- Organization: IBM T. J. Watson Research Center
- Lines: 10
-
- Taylor,
- From what I can see in your code the 'p' pointer is not a result
- of a malloc
- which is what the function free is looking for. Reread the details of
- free and if
- you still want to use this then allocate memory for it using malloc then
- free should
- work.
-
- Scott Gruber
-