daemon: Ensure CLEANUP_FREE* variables are initialized with NULL.

Otherwise an early exit from the function will cause an uninitialized
pointer to be freed.

This fixes commit 1d7c3a27822717398415940bde1d4476441e9c1a.
Version 1.23.15.