Debugging a Program With dbx

Address in Block (aib)


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;
main()
{
		ptr = (char *)malloc(4);
		ptr++;					/* Address in Block */
}