Sun Studio 12: Debugging a Program With dbx

Address in Block (aib) Error

Problem: A possible memory leak. There is no reference to the start of an allocated block, but there is at least one reference to an address within the block.

Possible causes: The only pointer to the start of the block is incremented.


char *ptr;
   ptr = (char *)malloc(4);
   ptr++;    /* Address in Block */