Missing Allocation

Occurs when an invalid pointer is passed to a deallocation function. The invalid address may point to a previously released heap block.


Code Location



Deallocation site

If present, represents the location and associated call stack from which the memory block referenced by the address was previously deallocated.

The previous deallocation makes all subsequent deallocation attempts invalid.


Invalid deallocation site

Represents the location and associated call stack attempting the deallocation.

C Example

char* pStr = (char*) malloc(20);

Fortran Example

integer, target :: b(100)
integer, pointer :: pmiddle
pmiddle => b(4)
DEALLOCATE( pmiddle )

Possible Correction Strategies


Do This

A double deallocation occurs.

Remove the extraneous deallocation.

An invalid deallocation occurs.

Fix the pointer value passed to the deallocator.

Supplemental documentation specific to a particular Intel Studio may be available at <install-dir>/<studio>/documentation/.

For more complete information about compiler optimizations, see our Optimization Notice.