Warning #424, ALLOC.C, line 275: Inappropriate deallocation (free) for modified data [MISRA-C:2004 Rule 1.2, REQ]

The message is reported for the deallocation of the remaining unused block , when, in a call to 'realloc', the new block is smaller than the old one:

free(p + nunits + 1);

where ' nunits' is the size of the new block in allocation units.

Deallocation is appropriate.