1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixed a comment.

This commit is contained in:
Sergey Prigogin 2009-12-06 03:54:43 +00:00
parent 29c2347063
commit b77877aea8

View file

@ -434,7 +434,7 @@ public class Database {
}
/**
* Free an allocate block.
* Free an allocated block.
*
* @param offset
*/
@ -444,9 +444,10 @@ public class Database {
long block = offset - BLOCK_HEADER_SIZE;
Chunk chunk = getChunk(block);
int blocksize = - chunk.getShort(block);
if (blocksize < 0)
if (blocksize < 0) {
// already freed
throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, 0, "Already Freed", new Exception())); //$NON-NLS-1$
}
addBlock(chunk, blocksize, block);
freed += blocksize;
}