hw/display/cg3.c: Fix memory leak