|
>> If the value of the pointer at deallocate time is still the same as what was returned from the initial allocate, what else about it can be corrupted? 1) Have you moved (or in any way "touched" the pointer in such a way as it could have been invalidated? The content would appear the same but the tag bit would have been turned off rendering it useless as a pointer. 2) Did you do a realloc and fail to store the new pointer (i.e are you attempting to free using the original pointer when the realloc may have changed it? Jon Paris Partner400
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.