Why do you want to get the size of the block allocated?
Why not just store the value you gave to malloc?