#: 18512 S12/OS9/68000 (OSK)
06-Aug-93 21:29:40
Sb: #18510-#malloc() problem
Fm: Bob van der Poel 76510,2203
To: David George 72240,134 (X)
Not sure about this...but from your message I gather that malloc() is returning
a value, but you think it is an incorrect one. Could it be that you have
assigned 'ptr' a malloc() value earlier, then done a free() to return that
memory to the heap, and then called malloc() again...in which case the same
memory would be assigned?
Mind you, there could be a bug in malloc()...but I've used it a lot and never
had any problems which I couldn't track down to my own stupidity.
There is 1 Reply.
|