Do not malloc and free the block inside the loop. Do it outside, break
in the case of error to free the memory again.
Not to mention the waste of speed :)
-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
