fix memory leak

This fixes the leak from ccv_read with variable 'a'