virt-log: Fix memory leak because of wrong type of CLEANUP_* function.

This fixes commit a3475cf9bbbbd3514b117d5edd75d9c0e239d43a.
Version 1.27.18.