images\error_sml.gifFMM: Freeing Mismatched Memory (Error Detection)

Example       Related Topics

An FMM message indicates that the program is trying to free memory with the wrong API call for that type of memory.

Purify reports a FMM message when the program allocates memory from one family of APIs and then deallocates the memory from a mismatched family. For example, a FMM message can occur when you use new to allocate memory and free to free the memory. You can also get this message when you use one heap to allocate memory and a wrong heap to deallocate the memory.

Note:

§      Sometimes mismatched frees work without crashing. However, you should watch out for changes in the implementation of any of the allocation modules (for example, between compilers or versions of operating systems) that might cause problems.

(C) Copyright IBM Corporation 1992, 2010.